mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/12721] Add Squiz.ControlStructures.ForEachLoopDeclaration
PHPBB3-12721
This commit is contained in:
@@ -48,6 +48,9 @@
|
|||||||
<!-- Verifies that there are not elseif statements. The else and the if should be separated by a space. -->
|
<!-- Verifies that there are not elseif statements. The else and the if should be separated by a space. -->
|
||||||
<rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
|
<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,
|
<!-- In the argument list, there MUST NOT be a space before each comma,
|
||||||
and there MUST be one space after each comma. -->
|
and there MUST be one space after each comma. -->
|
||||||
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
|
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
|
||||||
|
Reference in New Issue
Block a user