All function braces need to be on new line
This commit is contained in:
15
phpcs.xml
15
phpcs.xml
@@ -15,9 +15,18 @@
|
||||
<arg value="s"/>
|
||||
|
||||
<!-- Use PSR-2 as a base -->
|
||||
<rule ref="PSR2">
|
||||
<!-- Allow braces on same line for named functions -->
|
||||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
|
||||
<rule ref="PSR2"/>
|
||||
|
||||
<!-- Exclusions below are for templates/ folder -->
|
||||
|
||||
<!-- Allow php files without any PHP in them -->
|
||||
<rule ref="Internal.NoCodeFound">
|
||||
<exclude-pattern>templates</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Allow braces on same line for named functions -->
|
||||
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine">
|
||||
<exclude-pattern>templates</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Allow closing braces to be on the same line -->
|
||||
|
||||
Reference in New Issue
Block a user