aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-15 21:52:25 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-16 22:35:44 +0200
commita94581e7cae2e7fac6f88b8718866f694e8b01f0 (patch)
treed6b9bd0519f65d087e35f4d4c89681086d63ec17 /build
parent99a2f2fdb4d3f617f09ca248bf526b7ec97ba7aa (diff)
downloadforums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar
forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar.gz
forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar.bz2
forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar.xz
forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.zip
[ticket/12721] Add Squiz.ControlStructures.ForLoopDeclaration in legacy
PHPBB3-12721
Diffstat (limited to 'build')
-rw-r--r--build/code_sniffer/ruleset-php-legacy.xml3
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 f060e8e14f..3a1d849135 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -51,6 +51,9 @@
<!-- There should be a space between each element of a foreach loop and the as keyword should be lowercase. -->
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" />
+ <!-- In a for loop declaration, there should be no space inside the brackets and there should be 0 spaces before and 1 space after semicolons. -->
+ <rule ref="Squiz.ControlStructures.ForLoopDeclaration" />
+
<!-- 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">