String Initialization |
All, CompatibilityPHP71 |
1 |
1 |
Minor |
33 % |
Const Visibility Usage |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Minor |
16 % |
Class Could Be Final |
All, Analyze, ClassReview |
5 |
5 |
Minor |
95 % |
Property Could Be Local |
All, Analyze, ClassReview |
1 |
1 |
Minor |
71 % |
Property Used In One Method Only |
All, Analyze |
1 |
1 |
Minor |
84 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
6 |
5 |
Minor |
94 % |
Undefined Classes |
Analyze, All |
33 |
5 |
Major |
91 % |
Undefined static:: Or self:: |
Analyze, All, Simple |
1 |
1 |
Minor |
33 % |
Undefined ::class |
All, Analyze, CI-checks |
1 |
1 |
Major |
34 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10 |
14 |
3 |
Major |
48 % |
Unused Methods |
Dead code, All, Simple |
3 |
1 |
Minor |
95 % |
Mismatched Typehint |
All, Analyze, Typechecks |
1 |
1 |
Major |
5 % |
Modified Typed Parameter |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks |
2 |
2 |
Major |
22 % |
Relay Function |
Analyze, All |
1 |
1 |
Major |
83 % |
Typehint Must Be Returned |
All, Analyze, LintButWontExec, CI-checks |
2 |
2 |
Major |
10 % |
Undefined Functions |
Analyze, All, CI-checks |
1 |
1 |
Major |
71 % |
Uses Default Values |
Analyze, All, Simple, CI-checks |
4 |
3 |
Minor |
97 % |
Methods Without Return |
All, Analyze |
1 |
1 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Major |
38 % |
Wrong Returned Type |
All, Analyze, ClassReview, CI-checks |
4 |
3 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, CI-checks |
30 |
5 |
Major |
67 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks |
18 |
3 |
Minor |
44 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple |
7 |
2 |
Major |
65 % |
Unused Use |
Dead code, ClearPHP, All, Simple |
1 |
1 |
Major |
54 % |
List Short Syntax |
Internal, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
1 |
1 |
Major |
10 % |
List With Keys |
CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, Appinfo, All |
1 |
1 |
Major |
32 % |
PHP 7.0 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
6 |
4 |
Critical |
31 % |
PHP Keywords As Names |
Analyze, All, Simple |
2 |
1 |
Major |
89 % |
Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Major |
21 % |
Constant Comparison |
All, Analyze |
4 |
1 |
Minor |
0 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
2 |
1 |
Minor |
76 % |
Could Be Else |
All, Analyze |
1 |
1 |
Minor |
48 % |
Long Arguments |
All, Analyze |
1 |
1 |
Minor |
67 % |
Variable Is Not A Condition |
All, Analyze |
6 |
3 |
Minor |
57 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
1 |
1 |
Major |
44 % |
Missing Returntype In Method |
All, Typehints, Analyze, CI-checks |
4 |
3 |
Minor |
0 % |
Assigned Twice |
All, Analyze |
2 |
1 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
2 |
1 |
Major |
78 % |
Undefined Variable |
All, Analyze, CI-checks |
2 |
1 |
Minor |
77 % |