Commit 3d6c57c
committed
Cleaned up code - some adjustments to selected files
The following adjustments were made:
- Files should end with a newline (PHP:S113)
- Control structures should use curly braces (PHP:S121)
- Sections of code should not be commented out (PHP:S125)
- Empty statements should be removed (PHP:S1116)
- Lines should not end with trailing whitespaces (PHP:S1131)
- Unused function parameters should be removed (PHP:S1172)
- Unused local variables should be removed (PHP:S1481)
- PHP keywords and constants "true", "false", "null" should be lower
case (PHP:S1781)
- Method visibility should be explicitly declared (PHP:S1784)
- Method arguments with default values should be last (PHP:S1788)
- "elseif" keyword should be used in place of "else if" keywords
(PHP:S1793)
- "require_once" and "include_once" should be used instead of "require"
and "include" (PHP:2003)
- "&&" and "||" should be used (PHP:S2010)
- Jump statements should not be redundant (PHP:S3626)1 parent ceaf6a2 commit 3d6c57c
17 files changed
Lines changed: 879 additions & 1061 deletions
File tree
- lib
- results
- testcases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments