| Ambiguous Static |
All, Analyze |
7 |
5 |
Minor |
64 % |
| Anonymous Classes |
Appinfo, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
2 |
2 |
Major |
15 % |
| Avoid Optional Properties |
All, Analyze |
9 |
6 |
Major |
83 % |
| Cant Instantiate Class |
All, Analyze |
47 |
23 |
Critical |
28 % |
| Const Visibility Usage |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Minor |
16 % |
| Class Could Be Final |
All, Analyze, ClassReview |
12 |
11 |
Minor |
95 % |
| Method Could Be Static |
All, Analyze, ClassReview |
39 |
15 |
Minor |
95 % |
| No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks |
4 |
1 |
Major |
41 % |
| Empty Classes |
Analyze, All, Simple |
3 |
3 |
Minor |
58 % |
| Class Should Be Final By Ocramius |
All, Analyze |
2 |
2 |
Minor |
42 % |
| Hidden Nullable |
All, Analyze, ClassReview |
36 |
9 |
Minor |
0 % |
| Instantiating Abstract Class |
Analyze, All, Simple |
3 |
1 |
Major |
9 % |
| Locally Unused Property |
Dead code, All, Simple |
1 |
1 |
Minor |
76 % |
| Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
24 |
9 |
Minor |
49 % |
| Non Nullable Getters |
All, Analyze, ClassReview |
279 |
74 |
Minor |
0 % |
| Property Could Be Local |
All, Analyze, ClassReview |
258 |
88 |
Minor |
71 % |
| Never Used Properties |
Analyze, All, Simple |
1 |
1 |
Minor |
72 % |
| Property Used In One Method Only |
All, Analyze |
2 |
2 |
Minor |
84 % |
| Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
1 |
1 |
Minor |
57 % |
| Should Use Local Class |
Analyze, ClearPHP, All, Simple |
224 |
97 |
Minor |
94 % |
| Too Many Injections |
All, Analyze, Dismell |
13 |
13 |
Minor |
0 % |
| Undefined Classes |
Analyze, All |
272 |
83 |
Major |
91 % |
| Undefined Class Constants |
Analyze, All, CI-checks |
28 |
10 |
Major |
53 % |
| Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks |
5 |
1 |
Major |
58 % |
| Undefined static:: Or self:: |
Analyze, All, Simple |
3 |
3 |
Minor |
33 % |
| Undefined ::class |
All, Analyze, CI-checks |
10 |
2 |
Major |
34 % |
| Unresolved Catch |
Dead code, ClearPHP, All |
2 |
1 |
Major |
51 % |
| Unresolved Classes |
Analyze, All |
44 |
15 |
Major |
86 % |
| Unused Classes |
Dead code, All, Simple, Analyze |
7 |
7 |
Major |
72 % |
| Unused Class Constant |
All, Analyze, ClassReview |
4 |
1 |
Minor |
0 % |
| Unused Methods |
Dead code, All, Simple |
459 |
152 |
Minor |
95 % |
| Unused Private Properties |
Dead code, OneFile, All, Simple |
10 |
8 |
Minor |
37 % |
| Unused Protected Methods |
Dead code, All |
4 |
4 |
Major |
72 % |
| Used Once Property |
All, Analyze |
11 |
9 |
Minor |
72 % |
| Undefined Caught Exceptions |
Dead code, All |
3 |
1 |
None |
50 % |
| Forgotten Thrown |
All, Analyze |
37 |
35 |
Major |
30 % |
| Uncaught Exceptions |
Analyze, All |
18 |
16 |
Minor |
81 % |
| Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple |
37 |
37 |
Minor |
43 % |
| Missing Include |
All, Analyze |
2 |
1 |
Critical |
61 % |
| Generator Cannot Return |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
2 |
2 |
Major |
0 % |
| Insufficient Typehint |
All, Analyze, Typechecks |
85 |
46 |
Major |
24 % |
| Mismatch Parameter Name |
All, Analyze, CompatibilityPHP80 |
5 |
5 |
Minor |
0 % |
| Mismatched Default Arguments |
All, Analyze, Typechecks |
1 |
1 |
Minor |
33 % |
| Mismatched Typehint |
All, Analyze, Typechecks |
12 |
8 |
Major |
5 % |
| Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks |
18 |
14 |
Major |
22 % |
| Never Used Parameter |
All, Analyze, Suggestions |
12 |
8 |
Minor |
47 % |
| Relay Function |
Analyze, All |
30 |
12 |
Major |
83 % |
| Typehint Must Be Returned |
All, Analyze, LintButWontExec, CI-checks |
18 |
14 |
Major |
10 % |
| Undefined Functions |
Analyze, All, CI-checks |
21 |
11 |
Major |
71 % |
| Unused Arguments |
Analyze, All, Simple |
45 |
14 |
Major |
89 % |
| Useless Type Check |
All, Dead code, OneFile |
1 |
1 |
Minor |
0 % |
| Uses Default Values |
Analyze, All, Simple, CI-checks |
61 |
24 |
Minor |
97 % |
| Methods Without Return |
All, Analyze |
17 |
12 |
Minor |
0 % |
| Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
8 |
8 |
Major |
38 % |
| Wrong Returned Type |
All, Analyze, ClassReview, CI-checks |
68 |
34 |
Minor |
0 % |
| Wrong Type With Call |
All, Analyze, Typechecks, CI-checks |
3 |
3 |
Minor |
0 % |
| Already Parents Interface |
Analyze, All, Level 3, Suggestions |
2 |
2 |
Minor |
17 % |
| Forgotten Interface |
All, Analyze |
37 |
37 |
Minor |
52 % |
| Empty Interfaces |
Analyze, All, Simple |
3 |
3 |
Minor |
38 % |
| Undefined Interfaces |
Analyze, All, CI-checks |
270 |
133 |
Major |
67 % |
| Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
3 |
3 |
Minor |
57 % |
| Multiple Alias Definitions |
Analyze, All, Simple, CI-checks |
29 |
29 |
Minor |
42 % |
| Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Minor |
44 % |
| Unresolved Use |
Analyze, ClearPHP, All, Simple |
188 |
131 |
Major |
65 % |
| Unused Use |
Dead code, ClearPHP, All, Simple |
61 |
57 |
Major |
54 % |
| Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
1 |
1 |
Minor |
74 % |
| Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks |
2 |
2 |
Major |
59 % |
| Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Major |
45 % |
| No Return For Generator |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
2 |
2 |
Critical |
12 % |
| PHP 7.0 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
272 |
97 |
Critical |
31 % |
| PHP 7.1 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Critical |
0 % |
| PHP 7.3 Last Empty Argument |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Critical |
13 % |
| Php7 Relaxed Keyword |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
59 |
23 |
Major |
25 % |
| PHP Keywords As Names |
Analyze, All, Simple |
75 |
25 |
Major |
89 % |
| Trailing Comma In Calls |
All, CompatibilityPHP53, CompatibilityPHP70, Appinfo, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Minor |
0 % |
| Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
51 |
20 |
Major |
21 % |
| Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
2 |
2 |
Minor |
0 % |
| filter_input() As A Source |
All, Security |
1 |
1 |
Minor |
6 % |
| No Net For Xml Load |
All, Security |
4 |
1 |
Major |
49 % |
| Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
4 |
4 |
Minor |
76 % |
| Buried Assignation |
Analyze, All |
1 |
1 |
Minor |
82 % |
| Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
1 |
1 |
Minor |
60 % |
| Dont Mix ++ |
All, Analyze |
1 |
1 |
Minor |
43 % |
| Double Assignation |
Analyze, All |
2 |
1 |
Major |
55 % |
| Identical Consecutive Expression |
All, Analyze |
1 |
1 |
Minor |
58 % |
| Iffectations |
Analyze, All |
2 |
1 |
Minor |
80 % |
| Inconsistent Elseif |
All, Analyze |
1 |
1 |
Major |
73 % |
| Infinite Recursion |
All, Analyze |
57 |
10 |
Major |
0 % |
| Merge If Then |
All, Analyze, CI-checks |
1 |
1 |
Minor |
0 % |
| Modernize Empty With Expression |
All, Analyze, OneFile, Simple |
3 |
2 |
Minor |
56 % |
| Don't Change Incomings |
Analyze, All |
7 |
1 |
Minor |
44 % |
| No Need For Triple Equal |
All, Analyze |
1 |
1 |
Minor |
0 % |
| Variable Is Not A Condition |
All, Analyze |
1 |
1 |
Minor |
57 % |
| @ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
1 |
1 |
Minor |
66 % |
| Preprocessable |
Analyze, All, Rector |
1 |
1 |
Minor |
86 % |
| Static Loop |
Analyze, All, Simple, Level 4 |
2 |
2 |
Minor |
65 % |
| Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
1 |
1 |
Minor |
58 % |
| Useless Parenthesis |
Analyze, All, Simple, CI-checks |
4 |
4 |
Minor |
81 % |
| Missing Returntype In Method |
All, Typehints, Analyze, CI-checks |
39 |
25 |
Minor |
0 % |
| Undefined Constant Name |
All, Analyze |
1 |
1 |
Minor |
0 % |
| Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
83 |
17 |
Minor |
95 % |
| Written Only Variables |
Analyze, OneFile, All, Simple |
3 |
1 |
Minor |
78 % |