Skip to content

Commit

Permalink
Merge pull request WordPress#591 from jrfnl/feature/issue-588-no-php-…
Browse files Browse the repository at this point in the history
…closing-tag

Add sniff for (no) closing PHP tag at end of file to `core` ruleset.
  • Loading branch information
JDGrimes authored Jul 14, 2016
2 parents 77e400c + a4879d4 commit 21abfbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ php:

env:
- PHPCS_BRANCH=master
- PHPCS_BRANCH=2.2.0
- PHPCS_BRANCH=2.4.0

matrix:
fast_finish: true
Expand Down
1 change: 1 addition & 0 deletions WordPress-Core/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="PSR2.Files.ClosingTag"/>

<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#no-shorthand-php-tags -->
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require" : {
"squizlabs/php_codesniffer": "~2.2"
"squizlabs/php_codesniffer": "^2.4"
},
"minimum-stability" : "RC",
"support" : {
Expand Down

0 comments on commit 21abfbe

Please sign in to comment.