1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-12 20:56:40 +02:00

[ticket/12721] Add Squiz.ControlStructures.ForLoopDeclaration in legacy

PHPBB3-12721
This commit is contained in:
Tristan Darricau
2014-06-15 21:52:25 +02:00
parent 99a2f2fdb4
commit a94581e7ca
3 changed files with 5 additions and 2 deletions

View File

@ -51,6 +51,9 @@
<!-- There should be a space between each element of a foreach loop and the as keyword should be lowercase. --> <!-- There should be a space between each element of a foreach loop and the as keyword should be lowercase. -->
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" /> <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, <!-- 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">