Commit 929f0d4
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)
- Redundant pairs of parentheses should be removed (PHP:1110)
- Mergeable "if" statements should be combined (PHP:S1066)
- Empty statements should be removed (PHP:S1116)
- Modifiers should be declared in the correct order (PHP:S1124)
- Boolean literals should not be redundant (PHP:S1125)
- Lines should not end with trailing whitespaces (PHP:S1131)
- Use empty() to check whether the array is empty or not (PHP:S1155)
- Unused local variables should be removed (PHP:S1481)
- Identical expressions should not be used on both sides of a binary
operator (PHP:S1764)
- PHP keywords and constants "true", "false", "null" should be lower
case (PHP:S1781)
- Method visibility should be explicitly declared (PHP:S1784)
- "elseif" keyword should be used in place of "else if" keywords
(PHP:S1793)
- "&&" and "||" should be used (PHP:S2010)1 parent 5191885 commit 929f0d4
28 files changed
Lines changed: 1213 additions & 1304 deletions
File tree
- lib
- ajax
- functions
- general
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments