aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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 0f95cee957..f060e8e14f 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -48,6 +48,9 @@
<!-- Verifies that there are not elseif statements. The else and the if should be separated by a space. -->
<rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
+ <!-- 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 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">