mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-10 19:56:52 +02:00
[task/code-sniffer] Check function/method argument list spacing.
PHPBB3-11980
This commit is contained in:
@ -17,6 +17,15 @@
|
|||||||
<!-- Method arguments with default values MUST go at the end of the argument list. -->
|
<!-- Method arguments with default values MUST go at the end of the argument list. -->
|
||||||
<rule ref="PEAR.Functions.ValidDefaultValue" />
|
<rule ref="PEAR.Functions.ValidDefaultValue" />
|
||||||
|
|
||||||
|
<!-- 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">
|
||||||
|
<properties>
|
||||||
|
<property name="equalsSpacing" value="1"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint" />
|
||||||
|
|
||||||
<!-- The ?> closing tag MUST be omitted from files containing only PHP. -->
|
<!-- The ?> closing tag MUST be omitted from files containing only PHP. -->
|
||||||
<rule ref="Zend.Files.ClosingTag" />
|
<rule ref="Zend.Files.ClosingTag" />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user