Commit 5ca7a39
committed
PHPCS: fix up the code base [2] - strict comparisons
Fixes relate to the following rules:
* Use the `$strict` parameter when calling `in_array()`.
Notes regarding the changes for the comparison in the `Core_Language_Command` file:
* I have verified that the contents of `$available` is expected to always be strings, so a strict comparison should be good here.
* As the line became even longer now, I have taken the liberty to rewrite it to something slightly more readable.1 parent 58dd01e commit 5ca7a39
File tree
3 files changed
+7
-3
lines changed- src
3 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
0 commit comments