Weak Type With Array |
All, Analyze, ChangedBehavior |
51 |
20 |
Minor |
0 % |
Missing Attribute Attribute |
All, Analyze, Attributes, PHP recommendations, ChangedBehavior |
5 |
5 |
Minor |
0 % |
Abstract Or Implements |
All, Analyze, LintButWontExec, ChangedBehavior |
95 |
95 |
Major |
24 % |
Ambiguous Visibilities |
All, Analyze, Semantics, ChangedBehavior |
62 |
38 |
Minor |
70 % |
Avoid Optional Properties |
All, Analyze, ChangedBehavior |
9 |
4 |
Major |
84 % |
Class Could Be Final |
All, Analyze, ClassReview, ChangedBehavior |
142 |
142 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview, ChangedBehavior |
72 |
36 |
Minor |
92 % |
Could Inject Parameter |
All, Analyze, ClassReview, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Implicit Nullable Type |
All, Analyze, ClassReview, ChangedBehavior |
42 |
12 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
All, Analyze, ChangedBehavior |
8 |
8 |
Critical |
0 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2, ChangedBehavior |
2 |
2 |
Minor |
71 % |
Method Signature Must Be Compatible |
All, Analyze, LintButWontExec, ChangedBehavior |
1 |
1 |
Critical |
53 % |
Mismatch Properties Typehints |
All, Analyze, LintButWontExec, ClassReview, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Multiple Identical Trait Or Interface |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
0 % |
New Object Then Immediate Call |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
Non Nullable Getters |
All, Analyze, ClassReview, ChangedBehavior |
20 |
11 |
Minor |
0 % |
Parent First |
All, Analyze, Suggestions, ChangedBehavior |
2 |
2 |
Minor |
56 % |
Property Could Be Local |
All, Analyze, ClassReview, ChangedBehavior |
4 |
4 |
Minor |
76 % |
Same Name For Property And Method |
All, Analyze, ClassReview, Semantics, ChangedBehavior |
4 |
1 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused, ChangedBehavior |
2 |
2 |
Minor |
71 % |
Property Used In One Method Only |
All, Analyze, ChangedBehavior |
32 |
22 |
Minor |
84 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview, ChangedBehavior |
2 |
2 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
31 |
13 |
Minor |
95 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
17 |
13 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE |
72 |
14 |
Major |
62 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE |
6 |
2 |
Major |
61 % |
Undefined static:: Or self:: |
Analyze, All, Simple, Undefined, ChangedBehavior |
2 |
1 |
Minor |
35 % |
Unfinished Object |
All, Analyze, ClassReview, ChangedBehavior |
20 |
14 |
Major |
0 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
3 |
2 |
Major |
76 % |
Unused Classes |
Dead code, All, Simple, Analyze, Unused, ChangedBehavior |
28 |
28 |
Major |
67 % |
Unused Class Constant |
All, Analyze, ClassReview, Unused, ChangedBehavior |
20 |
5 |
Minor |
0 % |
Unused Public Methods |
All, Analyze, ChangedBehavior |
479 |
148 |
Minor |
0 % |
Use ::Class Operator |
All, Analyze, Performances, Simple, CI-checks, ChangedBehavior, CE |
14 |
1 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
4 |
3 |
Major |
63 % |
Used Once Property |
All, Analyze, ChangedBehavior |
12 |
9 |
Minor |
74 % |
Wrong Typed Property Default |
All, Analyze, LintButWontExec, ClassReview, CI-checks, CE |
1 |
1 |
Minor |
0 % |
Constant Used Only Once |
All, Analyze, ChangedBehavior |
96 |
31 |
Minor |
0 % |
Converted Exceptions |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Throw Raw Exceptions |
All, Analyze, Suggestions, ChangedBehavior |
22 |
13 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
51 |
28 |
Minor |
84 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior |
3 |
3 |
Minor |
45 % |
Native Alias Functions Usage |
Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
All, Analyze, ChangedBehavior |
4 |
3 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions, ChangedBehavior |
9 |
2 |
Minor |
66 % |
Empty Function |
Analyze, All, Simple, ChangedBehavior |
8 |
8 |
Minor |
74 % |
Insufficient Typehint |
All, Analyze, Typechecks, ChangedBehavior |
2 |
1 |
Major |
43 % |
Method Is Not An If |
All, Analyze |
25 |
22 |
Minor |
0 % |
Mismatch Parameter Name |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
3 |
2 |
Minor |
0 % |
Mismatch Type And Default |
All, Analyze, LintButWontExec, Typechecks, ChangedBehavior |
5 |
5 |
Critical |
8 % |
Mismatched Typehint |
All, Analyze, Typechecks, ChangedBehavior |
9 |
6 |
Major |
66 % |
Modified Typed Parameter |
All, Analyze, ClassReview, ChangedBehavior |
4 |
1 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
34 % |
Never Called Parameter |
All, Analyze, Suggestions, Rector, Unused |
13 |
12 |
Minor |
92 % |
No Boolean As Default |
All, Analyze |
1 |
1 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4, ChangedBehavior |
27 |
15 |
Minor |
69 % |
Too Many Local Variables |
All, Analyze |
2 |
2 |
Minor |
64 % |
Type Must Be Returned |
All, Analyze, LintButWontExec, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
22 % |
Unknown Parameter Name |
All, Analyze, CI-checks, ChangedBehavior, CE |
93 |
14 |
Minor |
0 % |
Unused Parameter |
Analyze, All, Simple, Unused |
3 |
3 |
Major |
90 % |
Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple, Unused |
59 |
23 |
Minor |
41 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
238 |
71 |
Minor |
98 % |
Methods Without Return |
All, Analyze |
1 |
1 |
Minor |
95 % |
Wrong Type Returned |
All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE |
157 |
49 |
Minor |
0 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE |
14 |
9 |
Minor |
0 % |
Already Parents Interface |
Analyze, All, Level 3, Suggestions, ChangedBehavior |
2 |
2 |
Minor |
26 % |
Forgotten Interface |
All, Analyze, ChangedBehavior |
34 |
34 |
Minor |
48 % |
Repeated Interface |
All, Analyze, LintButWontExec, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE |
7 |
5 |
Major |
72 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior |
24 |
24 |
Minor |
59 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
3 |
2 |
Minor |
23 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
44 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
5 |
3 |
Minor |
46 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
12 |
11 |
Major |
69 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
57 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
74 % |
Assumptions |
All, Analyze, ChangedBehavior |
8 |
8 |
Minor |
0 % |
Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE |
9 |
2 |
Major |
59 % |
Don't Pollute Global Space |
All, Analyze |
1 |
1 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
3 |
2 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE |
10 |
3 |
Minor |
53 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior |
16 |
6 |
Minor |
0 % |
Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
6 |
3 |
Minor |
46 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, ChangedBehavior, CE |
35 |
15 |
Minor |
0 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
Major |
56 % |
Comparison Is Always The Same |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4, ChangedBehavior |
11 |
9 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
11 |
7 |
Minor |
77 % |
Check All Types |
All, Analyze, ChangedBehavior |
27 |
11 |
Major |
69 % |
Check Division By Zero |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Check JSON |
All, Analyze, CI-checks, CE |
11 |
7 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Major |
80 % |
Don't Change The Blind Var |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
73 % |
Double Checks |
All, Analyze, ChangedBehavior |
3 |
1 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
57 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE |
17 |
17 |
Minor |
70 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
4 |
4 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
51 % |
Identical Consecutive Expression |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
59 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
1 |
Major |
47 % |
Iffectations |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
80 % |
Implode() Arguments Order |
All, Analyze, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
0 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
1 |
1 |
Minor |
37 % |
Long Arguments |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
68 % |
Max Level Of Nesting |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks, ChangedBehavior, CE |
4 |
4 |
Minor |
0 % |
Missing Assignation In Branches |
All, Analyze, ChangedBehavior |
7 |
5 |
Minor |
0 % |
Multiple Type Variable |
All, Analyze, Level 4, ChangedBehavior |
6 |
2 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes, ChangedBehavior |
7 |
4 |
Major |
84 % |
No Need For Else |
All, Analyze, ChangedBehavior |
18 |
18 |
Minor |
74 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, ChangedBehavior, CE |
2 |
1 |
Minor |
58 % |
Variable Is Not A Condition |
All, Analyze, ChangedBehavior |
27 |
16 |
Minor |
93 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
1 |
1 |
Major |
56 % |
Printf Number Of Arguments |
All, Analyze, CI-checks, CE |
1 |
1 |
Minor |
41 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE |
11 |
10 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector, ChangedBehavior |
39 |
11 |
Minor |
85 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
69 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
10 |
4 |
Minor |
0 % |
Use Positive Condition |
All, Analyze, OneFile, Simple, ChangedBehavior |
10 |
5 |
Minor |
82 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
3 |
3 |
Minor |
63 % |
Useless Null Coalesce |
All, Analyze, Typehints, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Dependant Trait |
Analyze, All, Level 3, ChangedBehavior |
1 |
1 |
Minor |
28 % |
Method Collision Traits |
All, Analyze, LintButWontExec, ChangedBehavior |
1 |
1 |
Critical |
5 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
34 |
10 |
Minor |
49 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, ChangedBehavior, CE |
21 |
14 |
Minor |
0 % |
StandaloneType True False Null |
All, Appcontent, Analyze, ChangedBehavior |
39 |
13 |
Minor |
0 % |
Wrong Type With Default |
All, Analyze, LintButWontExec, ClassReview, ChangedBehavior |
53 |
16 |
Minor |
0 % |
Assigned Twice |
All, Analyze, ChangedBehavior |
19 |
5 |
Minor |
79 % |
Overwritten Literals |
Analyze, All, ChangedBehavior |
20 |
5 |
Major |
79 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10, ChangedBehavior |
1 |
1 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
290 |
48 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused, ChangedBehavior |
1 |
1 |
Minor |
87 % |