diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/code_sniffer/ruleset-php-legacy.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml index 71741ce190..0f95cee957 100644 --- a/build/code_sniffer/ruleset-php-legacy.xml +++ b/build/code_sniffer/ruleset-php-legacy.xml @@ -45,6 +45,9 @@ <!-- When referencing arrays you should not put whitespace around the opening bracket or before the closing bracket. --> <rule ref="Squiz.Arrays.ArrayBracketSpacing" /> + <!-- Verifies that there are not elseif statements. The else and the if should be separated by a space. --> + <rule ref="Squiz.ControlStructures.ElseIfDeclaration" /> + <!-- In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma. --> <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing"> |