Skip to content

Commit

Permalink
Remove IfElseDeclaration sniff in favour of similar from PHPCSExtra
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 3, 2023
1 parent dbf537a commit 06485bf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 280 deletions.
59 changes: 0 additions & 59 deletions Yoast/Docs/ControlStructures/IfElseDeclarationStandard.xml

This file was deleted.

89 changes: 0 additions & 89 deletions Yoast/Sniffs/ControlStructures/IfElseDeclarationSniff.php

This file was deleted.

86 changes: 0 additions & 86 deletions Yoast/Tests/ControlStructures/IfElseDeclarationUnitTest.inc

This file was deleted.

46 changes: 0 additions & 46 deletions Yoast/Tests/ControlStructures/IfElseDeclarationUnitTest.php

This file was deleted.

4 changes: 4 additions & 0 deletions Yoast/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@
These may make it into WPCS at some point. If so, they can be removed here.
#############################################################################
-->

<!-- Demand that "else(if)" is on a new line after the scope closer of the preceding if. -->
<rule ref="Universal.ControlStructures.IfElseDeclaration"/>

<!-- Error prevention: Make sure the condition in a inline if declaration is bracketed. -->
<rule ref="Squiz.ControlStructures.InlineIfDeclaration"/>

Expand Down

0 comments on commit 06485bf

Please sign in to comment.