Class Could Be Final |
All, Analyze, ClassReview |
8 |
8 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview |
15 |
6 |
Minor |
92 % |
Hidden Nullable Typehint |
All, Analyze, ClassReview |
5 |
2 |
Minor |
0 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
6 |
2 |
Minor |
71 % |
Property Could Be Local |
All, Analyze, ClassReview |
4 |
1 |
Minor |
76 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
15 |
6 |
Minor |
95 % |
Undefined Classes |
Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt |
8 |
2 |
Major |
91 % |
Unused Classes |
Dead code, All, Simple, Analyze, Unused |
1 |
1 |
Major |
67 % |
Unused Public Method |
All, Analyze |
12 |
4 |
Minor |
0 % |
Wrong Typed Property Default |
All, Analyze, LintButWontExec, ClassReview, CI-checks, CE |
2 |
1 |
Minor |
0 % |
Throw Raw Exceptions |
All, Analyze, Suggestions |
2 |
2 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All |
2 |
2 |
Minor |
84 % |
Use Named Boolean In Argument Definition |
All, Analyze |
5 |
2 |
Minor |
84 % |
Callback Function Needs Return |
All, Analyze, CI-checks, CE |
1 |
1 |
Major |
42 % |
Empty Function |
Analyze, All, Simple |
3 |
1 |
Minor |
74 % |
No Boolean As Default |
All, Analyze |
5 |
2 |
Minor |
84 % |
Relay Function |
Analyze, All |
5 |
3 |
Major |
84 % |
Unused Parameter |
Analyze, All, Simple, Unused |
2 |
1 |
Major |
90 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE |
10 |
4 |
Minor |
98 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE |
4 |
3 |
Major |
81 % |
Wrong Type Returned |
All, Analyze, ClassReview, CI-checks, LintButWontExec, CE |
3 |
2 |
Minor |
0 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks, CE |
2 |
1 |
Minor |
0 % |
Forgotten Interface |
All, Analyze |
2 |
2 |
Minor |
48 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt |
1 |
1 |
Major |
69 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze, CE |
1 |
1 |
Minor |
0 % |
Assumptions |
All, Analyze |
3 |
2 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE |
1 |
1 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE |
1 |
1 |
Minor |
53 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated |
1 |
1 |
Minor |
0 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, CE |
2 |
2 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
1 |
1 |
Minor |
64 % |
Common Alternatives |
Analyze, All, Simple |
1 |
1 |
Major |
80 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
3 |
2 |
Minor |
66 % |
Identical Consecutive Expression |
All, Analyze |
1 |
1 |
Minor |
59 % |
Implicit Conversion To Int |
All, Analyze, LintButWontExec |
1 |
1 |
Minor |
0 % |
Infinite Recursion |
All, Analyze |
1 |
1 |
Major |
0 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
2 |
2 |
Major |
84 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE |
13 |
5 |
Minor |
62 % |
Variable Is Not A Condition |
All, Analyze |
11 |
4 |
Minor |
93 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, CE |
2 |
2 |
Minor |
86 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, CE |
1 |
1 |
Minor |
0 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
1 |
1 |
Minor |
82 % |
Use Same Types For Comparisons |
All, Analyze |
2 |
2 |
Minor |
0 % |
Useless Type Casting |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE |
1 |
1 |
Minor |
47 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
7 |
3 |
Minor |
81 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, CE |
6 |
3 |
Minor |
0 % |
Assigned Twice |
All, Analyze |
2 |
1 |
Minor |
79 % |
Overwritten Literals |
Analyze, All |
2 |
1 |
Major |
79 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
1 |
1 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE |
1 |
1 |
Minor |
95 % |