diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-15 21:34:02 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-16 22:35:41 +0200 |
commit | 09fc008e62453352cb34f4391acda310ea8b41c7 (patch) | |
tree | d1de46df2b21f947a3debafe919eca9151e3ecf6 /build | |
parent | 06bf864c41eeb8e0232f124f5a0539cb4f788439 (diff) | |
download | forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar.gz forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar.bz2 forums-09fc008e62453352cb34f4391acda310ea8b41c7.tar.xz forums-09fc008e62453352cb34f4391acda310ea8b41c7.zip |
[ticket/12721] Add Squiz.ControlStructures.ElseIfDeclaration in legacy
PHPBB3-12721
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"> |