[phpcs] Add rules for method declarations in classes
This commit is contained in:
parent
007ee4d858
commit
c296e73c18
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@
|
||||||
<rule ref="PEAR.Functions.ValidDefaultValue"/>
|
<rule ref="PEAR.Functions.ValidDefaultValue"/>
|
||||||
<!-- Use PascalCase for class names -->
|
<!-- Use PascalCase for class names -->
|
||||||
<rule ref="PEAR.NamingConventions.ValidClassName"/>
|
<rule ref="PEAR.NamingConventions.ValidClassName"/>
|
||||||
|
<!-- abstract and final declarations MUST precede the visibility declaration -->
|
||||||
|
<!-- static declaration MUST come after the visibility declaration -->
|
||||||
|
<rule ref="PSR2.Methods.MethodDeclaration" />
|
||||||
<!-- Use 'elseif' instead of 'else if' -->
|
<!-- Use 'elseif' instead of 'else if' -->
|
||||||
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
|
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
|
||||||
<!-- Do not add spaces after opening or before closing bracket -->
|
<!-- Do not add spaces after opening or before closing bracket -->
|
||||||
|
|
Loading…
Reference in a new issue