Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
21 |
2 |
Minor |
10 % |
Append And Assign Arrays |
All, Internal, Analyze, ChangedBehavior |
3 |
1 |
Minor |
0 % |
Multiple Index Definition |
Analyze, OneFile, All, Simple, CI-checks, Rector, CE |
1 |
1 |
Minor |
33 % |
Null Or Boolean Arrays |
All, Analyze |
2 |
1 |
Minor |
0 % |
Too Many Array Dimensions |
All, Analyze |
15 |
2 |
Minor |
0 % |
Weak Type With Array |
All, Analyze, ChangedBehavior |
17 |
3 |
Minor |
0 % |
Avoid Optional Properties |
All, Analyze, ChangedBehavior |
1 |
1 |
Major |
84 % |
Class Could Be Final |
All, Analyze, ClassReview, ChangedBehavior |
2 |
2 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview, ChangedBehavior |
19 |
2 |
Minor |
92 % |
Could Inject Parameter |
All, Analyze, ClassReview, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2, ChangedBehavior |
4 |
1 |
Minor |
71 % |
No Public Access |
Analyze, All, ChangedBehavior |
11 |
2 |
Minor |
61 % |
Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
10 |
2 |
Minor |
42 % |
Never Used Properties |
Analyze, All, Simple, Unused, ChangedBehavior |
3 |
2 |
Minor |
71 % |
Property Used In One Method Only |
All, Analyze, ChangedBehavior |
5 |
2 |
Minor |
84 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview, ChangedBehavior |
3 |
1 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
28 |
2 |
Minor |
95 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
160 |
6 |
Major |
91 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE |
1 |
1 |
Major |
61 % |
Unfinished Object |
All, Analyze, ClassReview, ChangedBehavior |
1 |
1 |
Major |
0 % |
Unused Public Methods |
All, Analyze, ChangedBehavior |
3 |
2 |
Minor |
0 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
63 % |
Illegal Name For Method |
All, Analyze, OneFile, Simple |
2 |
1 |
Major |
20 % |
Wrong Typed Property Default |
All, Analyze, LintButWontExec, ClassReview, CI-checks, CE |
2 |
1 |
Minor |
0 % |
Throw Raw Exceptions |
All, Analyze, Suggestions, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
84 % |
Missing Include |
All, Analyze, ChangedBehavior |
6 |
3 |
Critical |
65 % |
Use Named Boolean In Argument Definition |
All, Analyze, ChangedBehavior |
11 |
4 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions, ChangedBehavior |
10 |
2 |
Minor |
66 % |
Empty Function |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
74 % |
Method Is Not An If |
All, Analyze |
4 |
2 |
Minor |
0 % |
Mismatched Default Arguments |
All, Analyze, Typechecks, ChangedBehavior |
1 |
1 |
Minor |
80 % |
Never Called Parameter |
All, Analyze, Suggestions, Rector, Unused |
3 |
3 |
Minor |
92 % |
No Boolean As Default |
All, Analyze |
12 |
4 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4, ChangedBehavior |
1 |
1 |
Minor |
69 % |
Too Many Local Variables |
All, Analyze |
1 |
1 |
Minor |
64 % |
Undefined Functions |
Analyze, All, CI-checks, Stubs, Undefined, CE |
1 |
1 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
2 |
1 |
Major |
90 % |
Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple, Unused |
2 |
1 |
Minor |
41 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
245 |
7 |
Minor |
98 % |
Wrong Argument Type |
All, Analyze, Typechecks, ChangedBehavior |
7 |
4 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE |
1 |
1 |
Major |
81 % |
Wrong Type Returned |
All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE |
40 |
5 |
Minor |
0 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE |
25 |
6 |
Minor |
0 % |
Logical To in_array |
All, Analyze, Level 2, ChangedBehavior |
8 |
2 |
Minor |
67 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE |
10 |
3 |
Minor |
74 % |
strpos() Too Much |
All, Analyze, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
49 % |
Don't Pollute Global Space |
All, Analyze |
48 |
6 |
Minor |
0 % |
Exit Without Argument |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
False To Array Conversion |
All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze, ChangedBehavior |
7 |
2 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
40 |
5 |
Major |
76 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
17 |
5 |
Minor |
43 % |
No Class In Global |
All, Analyze, CI-checks, ChangedBehavior, CE |
47 |
6 |
Minor |
77 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior |
57 |
3 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
71 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, ChangedBehavior, CE |
6 |
3 |
Minor |
0 % |
Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks, ChangedBehavior, CE |
1 |
1 |
Critical |
35 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
7 |
3 |
Major |
56 % |
Alternative Syntax Consistence |
All, Analyze, ChangedBehavior |
2 |
1 |
Major |
21 % |
Comparison Is Always The Same |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4, ChangedBehavior |
6 |
3 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
14 |
6 |
Minor |
77 % |
Buried Assignation |
Analyze, All, ChangedBehavior |
6 |
3 |
Minor |
84 % |
Check All Types |
All, Analyze, ChangedBehavior |
6 |
2 |
Major |
69 % |
Check Division By Zero |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Check JSON |
All, Analyze, CI-checks, CE |
3 |
2 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple, ChangedBehavior |
6 |
4 |
Major |
80 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
56 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
1 |
1 |
Minor |
63 % |
Don't Change The Blind Var |
All, Analyze, ChangedBehavior |
6 |
3 |
Minor |
73 % |
Don't Mix ++ |
All, Analyze, ChangedBehavior |
3 |
1 |
Minor |
56 % |
Double Checks |
All, Analyze, ChangedBehavior |
5 |
2 |
Minor |
0 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
70 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions, ChangedBehavior |
6 |
4 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
4 |
1 |
Minor |
66 % |
Empty Instructions |
Dead code, Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
57 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE |
11 |
4 |
Major |
61 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, ChangedBehavior, CE |
36 |
2 |
Minor |
52 % |
Identical Case In Switch |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Identical Consecutive Expression |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
59 % |
Iffectations |
Analyze, All, ChangedBehavior |
2 |
2 |
Minor |
80 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
1 |
Major |
20 % |
Infinite Recursion |
All, Analyze, ChangedBehavior |
1 |
1 |
Major |
0 % |
Long Arguments |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
68 % |
Max Level Of Nesting |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks, ChangedBehavior, CE |
5 |
3 |
Minor |
0 % |
Missing Assignation In Branches |
All, Analyze, ChangedBehavior |
25 |
5 |
Minor |
0 % |
Modernize Empty With Expression |
All, Analyze, OneFile, Simple, ChangedBehavior |
1 |
1 |
Minor |
63 % |
Nested Ifthen |
Analyze, All, RadwellCodes, ChangedBehavior |
9 |
3 |
Major |
84 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
4 |
1 |
Major |
35 % |
No Need For Else |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
74 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
24 |
8 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, ChangedBehavior, CE |
11 |
2 |
Minor |
58 % |
Variable Is Not A Condition |
All, Analyze, ChangedBehavior |
21 |
4 |
Minor |
93 % |
Non Integer Nor String As Index |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
6 |
2 |
Major |
56 % |
Overwritten Foreach Var |
All, Analyze, OneFile, ChangedBehavior |
1 |
1 |
Major |
0 % |
Print And Die |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
4 |
2 |
Minor |
32 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, ChangedBehavior, CE |
2 |
1 |
Major |
50 % |
Repeated Regex |
All, Analyze, Level 1, CI-checks, ChangedBehavior, CE |
2 |
1 |
Minor |
47 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE |
9 |
4 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector, ChangedBehavior |
36 |
5 |
Minor |
85 % |
Static Inclusions |
All, Analyze, ChangedBehavior |
8 |
5 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4, ChangedBehavior |
4 |
1 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
7 |
2 |
Major |
54 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE |
4 |
3 |
Major |
69 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE |
10 |
3 |
Major |
49 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
3 |
2 |
Minor |
0 % |
Use Constant Instead Of Function |
PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
61 % |
Use Positive Condition |
All, Analyze, OneFile, Simple, ChangedBehavior |
11 |
4 |
Minor |
82 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2, ChangedBehavior |
4 |
2 |
Minor |
27 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
13 |
5 |
Minor |
81 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
6 |
2 |
Minor |
49 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, ChangedBehavior, CE |
3 |
2 |
Minor |
0 % |
Wrong Type With Default |
All, Analyze, LintButWontExec, ClassReview, ChangedBehavior |
18 |
3 |
Minor |
0 % |
Assigned Twice |
All, Analyze, ChangedBehavior |
50 |
6 |
Minor |
79 % |
Overwritten Literals |
Analyze, All, ChangedBehavior |
61 |
6 |
Major |
79 % |
Recycled Variables |
All, Analyze |
6 |
2 |
Minor |
0 % |
Undefined Variable |
All, Analyze, CI-checks, Undefined, CE |
40 |
5 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10, ChangedBehavior |
17 |
6 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
253 |
7 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused, ChangedBehavior |
8 |
3 |
Minor |
87 % |