Skip to content

Commit

Permalink
Merge pull request #811 from WordPress-Coding-Standards/feature/check…
Browse files Browse the repository at this point in the history
…-closure-braces

Core: also check closure braces for being on the same line as the function opener
  • Loading branch information
JDGrimes authored Jan 21, 2017
2 parents 3c3bc4a + 2462aad commit fca221c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WordPress-Core/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing"/>

<!-- Covers rule: Define a function like so: function my_function( $param1 = 'foo', $param2 = 'bar' ) { -->
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie">
<properties>
<property name="checkClosures" value="true" />
</properties>
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
<properties>
<property name="equalsSpacing" value="1" />
Expand Down

0 comments on commit fca221c

Please sign in to comment.