Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
13 |
2 |
Minor |
10 % |
Null Or Boolean Arrays |
All, Analyze |
6 |
2 |
Minor |
0 % |
Too Many Array Dimensions |
All, Analyze |
34 |
5 |
Minor |
0 % |
Weak Type With Array |
All, Analyze, ChangedBehavior |
852 |
43 |
Minor |
0 % |
Abstract Or Implements |
All, Analyze, LintButWontExec, ChangedBehavior |
4 |
4 |
Major |
24 % |
Access Protected Structures |
Analyze, All, Simple, ChangedBehavior |
2 |
1 |
Major |
17 % |
Ambiguous Static |
All, Analyze, Semantics, ChangedBehavior |
6 |
6 |
Minor |
66 % |
Ambiguous Visibilities |
All, Analyze, Semantics, ChangedBehavior |
27 |
11 |
Minor |
70 % |
Avoid Optional Properties |
All, Analyze, ChangedBehavior |
34 |
10 |
Major |
84 % |
Could Be Abstract Class |
All, Analyze, ClassReview, ChangedBehavior |
3 |
3 |
Minor |
65 % |
Class Could Be Final |
All, Analyze, ClassReview, ChangedBehavior |
55 |
54 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview, ChangedBehavior |
77 |
26 |
Minor |
92 % |
Could Inject Parameter |
All, Analyze, ClassReview, ChangedBehavior |
5 |
3 |
Minor |
0 % |
Different Argument Counts |
All, Analyze, ClassReview, ChangedBehavior |
5 |
2 |
Minor |
0 % |
Empty Classes |
Analyze, All, Simple, ChangedBehavior |
12 |
12 |
Minor |
60 % |
Implicit Nullable Type |
All, Analyze, ClassReview, ChangedBehavior |
4 |
3 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
All, Analyze, ChangedBehavior |
8 |
4 |
Critical |
0 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2, ChangedBehavior |
3 |
2 |
Minor |
71 % |
Method Signature Must Be Compatible |
All, Analyze, LintButWontExec, ChangedBehavior |
5 |
2 |
Critical |
53 % |
Mismatch Properties Typehints |
All, Analyze, LintButWontExec, ClassReview, ChangedBehavior |
9 |
5 |
Minor |
0 % |
New Object Then Immediate Call |
All, Analyze, ClassReview |
7 |
5 |
Minor |
0 % |
No Public Access |
Analyze, All, ChangedBehavior |
13 |
4 |
Minor |
61 % |
Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
24 |
9 |
Minor |
42 % |
Parent First |
All, Analyze, Suggestions, ChangedBehavior |
5 |
5 |
Minor |
56 % |
Property Could Be Local |
All, Analyze, ClassReview, ChangedBehavior |
29 |
8 |
Minor |
76 % |
Same Name For Property And Method |
All, Analyze, ClassReview, Semantics, ChangedBehavior |
10 |
4 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused, ChangedBehavior |
26 |
20 |
Minor |
71 % |
Property Used In One Method Only |
All, Analyze, ChangedBehavior |
26 |
10 |
Minor |
84 % |
Scalar Or Object Property |
All, Analyze |
1 |
1 |
Minor |
32 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview, ChangedBehavior |
1 |
1 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
85 |
29 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
5 |
2 |
Minor |
50 % |
Wrong Access Style to Property |
All, Analyze, Level 2, ClassReview, CI-checks, CE |
4 |
2 |
Critical |
37 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
1026 |
85 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE |
5 |
1 |
Major |
62 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
1 |
1 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE |
231 |
18 |
Major |
61 % |
Undefined ::class |
All, Analyze, CI-checks, Undefined, ChangedBehavior, CE |
52 |
5 |
Major |
36 % |
Unfinished Object |
All, Analyze, ClassReview, ChangedBehavior |
17 |
8 |
Major |
0 % |
Unreachable Method |
All, Analyze, Dead code, ClassReview, Unused, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
21 |
13 |
Major |
76 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior |
1 |
1 |
Major |
48 % |
Unused Classes |
Dead code, All, Simple, Analyze, Unused, ChangedBehavior |
4 |
4 |
Major |
67 % |
Unused Class Constant |
All, Analyze, ClassReview, Unused, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Unused Public Methods |
All, Analyze, ChangedBehavior |
192 |
47 |
Minor |
0 % |
Use ::Class Operator |
All, Analyze, Performances, Simple, CI-checks, ChangedBehavior, CE |
148 |
26 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
8 |
6 |
Major |
63 % |
Used Once Property |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
74 % |
Useless Abstract Class |
Analyze, All, Simple, ChangedBehavior |
3 |
3 |
Minor |
33 % |
Weak Typing |
All, Analyze, ChangedBehavior |
13 |
4 |
Minor |
47 % |
Wrong Typed Property Default |
All, Analyze, LintButWontExec, ClassReview, CI-checks, CE |
7 |
4 |
Minor |
0 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
14 |
5 |
Minor |
54 % |
Constant Used Only Once |
All, Analyze, ChangedBehavior |
10 |
5 |
Minor |
0 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
4 |
2 |
Minor |
41 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, ChangedBehavior, CE |
128 |
5 |
Minor |
71 % |
Throw Raw Exceptions |
All, Analyze, Suggestions, ChangedBehavior |
4 |
3 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
17 |
7 |
Minor |
84 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
45 % |
Useless Try |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Missing Include |
All, Analyze, ChangedBehavior |
15 |
9 |
Critical |
65 % |
Native Alias Functions Usage |
Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
753 |
40 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
All, Analyze, ChangedBehavior |
51 |
24 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions, ChangedBehavior |
888 |
51 |
Minor |
66 % |
Don't Collect Void |
All, Analyze, ChangedBehavior |
25 |
5 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple, ChangedBehavior |
10 |
7 |
Minor |
74 % |
Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3, ChangedBehavior |
8 |
7 |
Major |
70 % |
Insufficient Typehint |
All, Analyze, Typechecks, ChangedBehavior |
11 |
3 |
Major |
43 % |
Method Is Not An If |
All, Analyze |
21 |
14 |
Minor |
0 % |
Mismatched Default Arguments |
All, Analyze, Typechecks, ChangedBehavior |
18 |
6 |
Minor |
80 % |
Mismatched Typehint |
All, Analyze, Typechecks, ChangedBehavior |
5 |
3 |
Major |
66 % |
Modified Typed Parameter |
All, Analyze, ClassReview, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Never Called Parameter |
All, Analyze, Suggestions, Rector, Unused |
26 |
11 |
Minor |
92 % |
No Boolean As Default |
All, Analyze |
50 |
23 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4, ChangedBehavior |
11 |
7 |
Minor |
69 % |
Redeclared PHP Functions |
Analyze, Appinfo, All, Simple, CI-checks, ChangedBehavior, CE |
3 |
2 |
Minor |
26 % |
Too Many Local Variables |
All, Analyze |
10 |
7 |
Minor |
64 % |
Class-typed References |
All, Analyze, CI-checks, CE |
1 |
1 |
Minor |
37 % |
Undefined Functions |
Analyze, All, CI-checks, Stubs, Undefined, CE |
336 |
66 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
24 |
12 |
Major |
90 % |
Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple, Unused |
137 |
25 |
Minor |
41 % |
Useless Referenced Argument |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
58 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
2727 |
69 |
Minor |
98 % |
Using Deprecated Method |
All, Analyze, Attributes |
5 |
2 |
Minor |
0 % |
Wrong Argument Type |
All, Analyze, Typechecks, ChangedBehavior |
1462 |
44 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE |
16 |
9 |
Major |
81 % |
Wrong Optional Parameter |
Analyze, All, Simple, Level 1, CI-checks, CompatibilityPHP80, ChangedBehavior, CE |
2 |
1 |
Minor |
32 % |
Wrong Type Returned |
All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE |
256 |
36 |
Minor |
0 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE |
1584 |
45 |
Minor |
0 % |
Forgotten Interface |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
48 % |
Undefined Interfaces |
Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE |
90 |
28 |
Major |
72 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
44 |
32 |
Minor |
44 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
17 |
2 |
Minor |
46 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
146 |
64 |
Major |
69 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
8 |
7 |
Major |
57 % |
Logical To in_array |
All, Analyze, Level 2, ChangedBehavior |
9 |
3 |
Minor |
67 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE |
83 |
19 |
Minor |
74 % |
strpos() Too Much |
All, Analyze, CI-checks, ChangedBehavior, CE |
2 |
1 |
Minor |
49 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze, ChangedBehavior, CE |
11 |
4 |
Minor |
0 % |
Assumptions |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE |
4 |
2 |
Major |
59 % |
Deprecated PHP Functions |
Analyze, All, CI-checks, CE |
17 |
4 |
Major |
23 % |
Don't Pollute Global Space |
All, Analyze |
160 |
31 |
Minor |
0 % |
False To Array Conversion |
All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze, ChangedBehavior |
101 |
11 |
Minor |
0 % |
Incompilable Files |
Analyze, Appinfo, ClearPHP, All, Simple, CE |
1 |
1 |
Critical |
24 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
59 |
12 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE |
75 |
20 |
Minor |
53 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
4 |
4 |
Minor |
43 % |
Possible Missing Subpattern |
All, Analyze, Top10, CI-checks, ChangedBehavior, CE |
8 |
3 |
Minor |
45 % |
PHP Native Class Type Compatibility |
All, Analyze, CompatibilityPHP81, ChangedBehavior |
4 |
1 |
Major |
0 % |
No Class In Global |
All, Analyze, CI-checks, ChangedBehavior, CE |
134 |
29 |
Minor |
77 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior |
119 |
17 |
Minor |
0 % |
Scalar Are Not Arrays |
All, Analyze, CompatibilityPHP74, CI-checks, ChangedBehavior, CE |
6 |
1 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, ChangedBehavior, CE |
25 |
6 |
Major |
71 % |
Too Many Native Calls |
All, Analyze, ChangedBehavior |
80 |
23 |
Minor |
49 % |
Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
5 |
3 |
Minor |
46 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, ChangedBehavior, CE |
62 |
16 |
Minor |
0 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
14 |
6 |
Major |
56 % |
Comparison Is Always The Same |
All, Analyze, ChangedBehavior |
4 |
2 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4, ChangedBehavior |
117 |
29 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
115 |
17 |
Minor |
77 % |
Buried Assignation |
Analyze, All, ChangedBehavior |
262 |
23 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1, ChangedBehavior |
15 |
8 |
Minor |
56 % |
Check All Types |
All, Analyze, ChangedBehavior |
19 |
7 |
Major |
69 % |
Check Division By Zero |
All, Analyze, ChangedBehavior |
4 |
3 |
Minor |
0 % |
Check JSON |
All, Analyze, CI-checks, CE |
1 |
1 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple, ChangedBehavior |
39 |
9 |
Major |
80 % |
Could Be Else |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
49 % |
Could Be Spaceship |
All, Analyze, Suggestions, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Could Be A Static Variable |
Analyze, OneFile, All, ClassReview, ChangedBehavior |
1 |
1 |
Major |
23 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
10 |
4 |
Minor |
63 % |
Count() Is Not Negative |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Don't Change The Blind Var |
All, Analyze, ChangedBehavior |
23 |
10 |
Minor |
73 % |
Don't Mix ++ |
All, Analyze, ChangedBehavior |
25 |
11 |
Minor |
56 % |
Don't Read And Write In One Expression |
All, Analyze, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior, CE |
2 |
1 |
Critical |
38 % |
Double Checks |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple, ChangedBehavior |
7 |
4 |
Minor |
57 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE |
46 |
15 |
Minor |
70 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions, ChangedBehavior |
26 |
2 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
16 |
12 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
51 % |
Eval() Usage |
Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security, PHP recommendations, ChangedBehavior, CE |
3 |
1 |
Major |
39 % |
eval() Without Try |
Analyze, All, Simple, Level 3, Security, CI-checks, ChangedBehavior, CE |
2 |
1 |
Critical |
36 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE |
22 |
9 |
Major |
61 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, ChangedBehavior, CE |
6 |
3 |
Minor |
52 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
197 |
22 |
Major |
40 % |
Htmlentities Using Default Flag |
All, Analyze, Simple, CI-checks, ChangedBehavior |
198 |
22 |
Minor |
0 % |
Identical Case In Switch |
All, Analyze, ChangedBehavior |
30 |
6 |
Minor |
0 % |
Identical Conditions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Critical |
28 % |
Identical Consecutive Expression |
All, Analyze, ChangedBehavior |
11 |
6 |
Minor |
59 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
47 % |
Iffectations |
Analyze, All, ChangedBehavior |
495 |
21 |
Minor |
80 % |
Implied If |
Analyze, ClearPHP, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
3 |
2 |
Major |
33 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
9 |
4 |
Major |
20 % |
Invalid Regex |
All, Analyze, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
37 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
5 |
3 |
Minor |
37 % |
Long Arguments |
All, Analyze, ChangedBehavior |
81 |
20 |
Minor |
68 % |
Max Level Of Nesting |
All, Analyze, ChangedBehavior |
20 |
11 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks, ChangedBehavior, CE |
24 |
10 |
Minor |
0 % |
Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4, ChangedBehavior |
2 |
1 |
Major |
64 % |
Missing Assignation In Branches |
All, Analyze, ChangedBehavior |
96 |
26 |
Minor |
0 % |
Maybe Missing New |
All, Analyze, ChangedBehavior |
2 |
1 |
Critical |
57 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, ChangedBehavior, CE |
1 |
1 |
Minor |
29 % |
Multiple Type Variable |
All, Analyze, Level 4, ChangedBehavior |
6 |
2 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes, ChangedBehavior |
57 |
21 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
8 |
1 |
Major |
50 % |
Don't Change Incomings |
Analyze, All, ChangedBehavior |
5 |
3 |
Minor |
44 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE |
1 |
1 |
Major |
42 % |
No Hardcoded Hash |
Analyze, Security, All, Simple, ChangedBehavior |
2 |
1 |
Critical |
45 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
1 |
1 |
Major |
35 % |
No Need For Else |
All, Analyze, ChangedBehavior |
47 |
16 |
Minor |
74 % |
No Null For Index |
All, Analyze, ChangedBehavior |
21 |
3 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
8 |
3 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, ChangedBehavior, CE |
5 |
2 |
Minor |
58 % |
Variable Is Not A Condition |
All, Analyze, ChangedBehavior |
180 |
36 |
Minor |
93 % |
Non Integer Nor String As Index |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
0 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, ChangedBehavior, CE |
42 |
11 |
Minor |
65 % |
Objects Don't Need References |
Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
40 % |
include_once() Usage |
Analyze, Appinfo, All, ChangedBehavior, CE |
15 |
7 |
Minor |
73 % |
Overwritten Foreach Var |
All, Analyze, OneFile, ChangedBehavior |
3 |
2 |
Major |
0 % |
Printf Number Of Arguments |
All, Analyze, CI-checks, CE |
17 |
9 |
Minor |
41 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, ChangedBehavior, CE |
185 |
21 |
Major |
50 % |
Repeated Regex |
All, Analyze, Level 1, CI-checks, ChangedBehavior, CE |
79 |
13 |
Minor |
47 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
31 |
10 |
Major |
46 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Critical |
55 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE |
48 |
17 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector, ChangedBehavior |
177 |
30 |
Minor |
85 % |
Static Inclusions |
All, Analyze, ChangedBehavior |
38 |
29 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4, ChangedBehavior |
2 |
2 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
6 |
4 |
Major |
54 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple, ChangedBehavior |
1 |
1 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE |
12 |
5 |
Major |
69 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE |
4 |
2 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, ChangedBehavior, CE |
3 |
2 |
Major |
50 % |
Unsupported Operand Types |
All, PHP recommendations, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
28 |
14 |
Minor |
0 % |
Unused Global |
Analyze, All, Simple, Unused, ChangedBehavior |
1 |
1 |
Minor |
22 % |
Use Constant Instead Of Function |
PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
61 % |
Use Positive Condition |
All, Analyze, OneFile, Simple, ChangedBehavior |
48 |
17 |
Minor |
82 % |
Use Same Types For Comparisons |
All, Analyze |
2 |
1 |
Minor |
0 % |
Useless Check |
All, Analyze, OneFile, Simple, Level 1, CI-checks, CE |
2 |
2 |
Minor |
35 % |
Useless Coalesce |
All, Analyze, ChangedBehavior |
4 |
3 |
Minor |
0 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
8 |
4 |
Minor |
63 % |
Useless Null Coalesce |
All, Analyze, Typehints, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
59 |
22 |
Minor |
81 % |
Useless Short Ternary |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Useless Switch |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Major |
32 % |
var_dump()... Usage |
Analyze, ClearPHP, Security, All, CI-checks, ChangedBehavior, CE |
1 |
1 |
Critical |
42 % |
While(List() = Each()) |
Analyze, Performances, OneFile, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
14 % |
Dependant Trait |
Analyze, All, Level 3, ChangedBehavior |
1 |
1 |
Minor |
28 % |
Undefined Trait |
Analyze, All, LintButWontExec, CI-checks, Undefined, ChangedBehavior, CE |
5 |
3 |
Critical |
15 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
6 |
2 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple, ChangedBehavior |
6 |
4 |
Minor |
59 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, ChangedBehavior, CE |
13 |
12 |
Minor |
0 % |
StandaloneType True False Null |
All, Appcontent, Analyze, ChangedBehavior |
32 |
15 |
Minor |
0 % |
Wrong Type With Default |
All, Analyze, LintButWontExec, ClassReview, ChangedBehavior |
98 |
17 |
Minor |
0 % |
Assigned Twice |
All, Analyze, ChangedBehavior |
128 |
13 |
Minor |
79 % |
Overwritten Literals |
Analyze, All, ChangedBehavior |
142 |
13 |
Major |
79 % |
Recycled Variables |
All, Analyze |
7 |
3 |
Minor |
0 % |
Undefined Constant Name |
All, Analyze, Undefined, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Undefined Variable |
All, Analyze, CI-checks, Undefined, CE |
358 |
33 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10, ChangedBehavior |
7 |
5 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
1547 |
48 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused, ChangedBehavior |
21 |
9 |
Minor |
87 % |