Null Or Boolean Arrays |
All, Analyze |
3 |
1 |
Minor |
0 % |
Weak Type With Array |
All, Analyze, ChangedBehavior |
15 |
6 |
Minor |
0 % |
Avoid Optional Properties |
All, Analyze, ChangedBehavior |
2 |
2 |
Major |
84 % |
Class Could Be Final |
All, Analyze, ClassReview, ChangedBehavior |
7 |
7 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview, ChangedBehavior |
9 |
3 |
Minor |
92 % |
New Object Then Immediate Call |
All, Analyze, ClassReview |
4 |
4 |
Minor |
0 % |
Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
18 |
6 |
Minor |
42 % |
Property Could Be Local |
All, Analyze, ClassReview, ChangedBehavior |
6 |
2 |
Minor |
76 % |
Property Used In One Method Only |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
84 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
10 |
4 |
Minor |
95 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
37 |
18 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE |
1 |
1 |
Major |
62 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE |
3 |
1 |
Major |
61 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
14 |
7 |
Major |
76 % |
Unused Public Methods |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Used Once Property |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
74 % |
Useless Constructor |
Analyze, All, Simple, Level 3, ChangedBehavior |
1 |
1 |
Minor |
41 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
1 |
1 |
Minor |
54 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, ChangedBehavior, CE |
1 |
1 |
Minor |
71 % |
Throw Raw Exceptions |
All, Analyze, Suggestions, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
84 % |
Useless Try |
All, Analyze, ChangedBehavior |
3 |
2 |
Minor |
0 % |
Missing Include |
All, Analyze, ChangedBehavior |
14 |
12 |
Critical |
65 % |
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 |
1 |
1 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions, ChangedBehavior |
66 |
19 |
Minor |
66 % |
Empty Function |
Analyze, All, Simple, ChangedBehavior |
2 |
2 |
Minor |
74 % |
Method Is Not An If |
All, Analyze |
1 |
1 |
Minor |
0 % |
Never Called Parameter |
All, Analyze, Suggestions, Rector, Unused |
1 |
1 |
Minor |
92 % |
No Boolean As Default |
All, Analyze |
1 |
1 |
Minor |
84 % |
Too Many Local Variables |
All, Analyze |
1 |
1 |
Minor |
64 % |
Unused Parameter |
Analyze, All, Simple, Unused |
4 |
4 |
Major |
90 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
383 |
30 |
Minor |
98 % |
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 |
23 |
5 |
Minor |
0 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
3 |
1 |
Minor |
23 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
7 |
4 |
Major |
69 % |
Logical To in_array |
All, Analyze, Level 2, ChangedBehavior |
4 |
1 |
Minor |
67 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE |
17 |
7 |
Minor |
74 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze, ChangedBehavior, CE |
4 |
1 |
Minor |
0 % |
Assumptions |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Avoid mb_dectect_encoding() |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Don't Pollute Global Space |
All, Analyze |
27 |
8 |
Minor |
0 % |
Exit Without Argument |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
False To Array Conversion |
All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze, ChangedBehavior |
29 |
8 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
25 |
7 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE |
2 |
1 |
Minor |
53 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
139 |
19 |
Minor |
43 % |
No Class In Global |
All, Analyze, CI-checks, ChangedBehavior, CE |
26 |
7 |
Minor |
77 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior |
6 |
3 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, ChangedBehavior, CE |
18 |
4 |
Major |
71 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, ChangedBehavior, CE |
12 |
5 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4, ChangedBehavior |
8 |
7 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
32 |
10 |
Minor |
77 % |
Buried Assignation |
Analyze, All, ChangedBehavior |
2 |
2 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1, ChangedBehavior |
1 |
1 |
Minor |
56 % |
Check JSON |
All, Analyze, CI-checks, CE |
17 |
11 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple, ChangedBehavior |
2 |
2 |
Major |
80 % |
Could Be Else |
All, Analyze, ChangedBehavior |
2 |
1 |
Minor |
49 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
56 % |
Don't Change The Blind Var |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
73 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE |
3 |
3 |
Minor |
70 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
7 |
5 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
51 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE |
14 |
8 |
Major |
61 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
40 % |
Htmlentities Using Default Flag |
All, Analyze, Simple, CI-checks, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Identical Consecutive Expression |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
59 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
11 |
5 |
Major |
47 % |
Iffectations |
Analyze, All, ChangedBehavior |
2 |
2 |
Minor |
80 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
6 |
1 |
Major |
20 % |
Invalid Regex |
All, Analyze, CI-checks, ChangedBehavior, CE |
4 |
2 |
Major |
37 % |
Long Arguments |
All, Analyze, ChangedBehavior |
6 |
4 |
Minor |
68 % |
Max Level Of Nesting |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks, ChangedBehavior, CE |
39 |
13 |
Minor |
0 % |
Missing Assignation In Branches |
All, Analyze, ChangedBehavior |
153 |
20 |
Minor |
0 % |
Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
2 |
2 |
Minor |
45 % |
Multiple Type Variable |
All, Analyze, Level 4, ChangedBehavior |
6 |
6 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes, ChangedBehavior |
110 |
19 |
Major |
84 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
1 |
1 |
Major |
35 % |
No isset() With empty() |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, ChangedBehavior, CE |
2 |
1 |
Minor |
30 % |
No Need For Else |
All, Analyze, ChangedBehavior |
3 |
3 |
Minor |
74 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
35 |
14 |
Minor |
62 % |
Variable Is Not A Condition |
All, Analyze, ChangedBehavior |
191 |
17 |
Minor |
93 % |
Non Integer Nor String As Index |
All, Analyze, ChangedBehavior |
1 |
1 |
Minor |
0 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, ChangedBehavior, CE |
4 |
1 |
Minor |
65 % |
include_once() Usage |
Analyze, Appinfo, All, ChangedBehavior, CE |
39 |
17 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
1 |
1 |
Major |
56 % |
Repeated Regex |
All, Analyze, Level 1, CI-checks, ChangedBehavior, CE |
6 |
2 |
Minor |
47 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
15 |
9 |
Critical |
55 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE |
12 |
7 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector, ChangedBehavior |
22 |
8 |
Minor |
85 % |
Static Inclusions |
All, Analyze, ChangedBehavior |
31 |
15 |
Minor |
0 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE |
3 |
3 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
50 % |
Unpreprocessed Values |
Analyze, OneFile, ClearPHP, All, Simple, Performances, ChangedBehavior |
1 |
1 |
Minor |
30 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
33 |
11 |
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 |
31 |
18 |
Minor |
82 % |
Use Same Types For Comparisons |
All, Analyze |
2 |
1 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
4 |
4 |
Minor |
81 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks, ChangedBehavior, CE |
9 |
7 |
Minor |
33 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
43 |
15 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
59 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, ChangedBehavior, CE |
4 |
3 |
Minor |
0 % |
Assigned Twice |
All, Analyze, ChangedBehavior |
200 |
17 |
Minor |
79 % |
Overwritten Literals |
Analyze, All, ChangedBehavior |
251 |
17 |
Major |
79 % |
Undefined Variable |
All, Analyze, CI-checks, Undefined, CE |
794 |
20 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10, ChangedBehavior |
6 |
5 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
694 |
30 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused, ChangedBehavior |
2 |
1 |
Minor |
87 % |