Skip to content

Commit

Permalink
Merge pull request #2098 from WordPress/feature/core-add-no-blank-lin…
Browse files Browse the repository at this point in the history
…e-at-end-of-function
  • Loading branch information
GaryJones authored Oct 28, 2022
2 parents ec74c3a + bf049fd commit 2e24846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
</properties>
</rule>

<rule ref="PSR2.Methods.FunctionClosingBrace"/>

<!-- Check code for cross-version PHP compatibility. -->
<config name="testVersion" value="5.4-"/>
<rule ref="PHPCompatibility">
Expand Down
4 changes: 4 additions & 0 deletions WordPress-Core/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@
<!-- Covers rule: Omitting the closing PHP tag at the end of a file is preferred. -->
<rule ref="PSR2.Files.ClosingTag"/>

<!-- Covers rule: There should be no trailing blank lines at the end of a function body. -->
<rule ref="PSR2.Methods.FunctionClosingBrace"/>


<!--
#############################################################################
Handbook: Formatting - Brace Style.
Expand Down

0 comments on commit 2e24846

Please sign in to comment.