Skip to content

Commit

Permalink
PSR2/PSR12/ControlStructureSpacing: don't listen for T_ELSE
Browse files Browse the repository at this point in the history
No functional changes.

These sniffs only concerns themselves with control structures which take parentheses, so listening for `T_ELSE` is unnecessary as the sniffs will never do anything for that token (they each bow out on no 'parenthesis_opener'/'parenthesis_closer' found).
  • Loading branch information
jrfnl committed Nov 11, 2023
1 parent b0d171b commit ee9df63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function register()
T_FOREACH,
T_FOR,
T_SWITCH,
T_ELSE,
T_ELSEIF,
T_CATCH,
T_MATCH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public function register()
T_FOREACH,
T_FOR,
T_SWITCH,
T_ELSE,
T_ELSEIF,
T_CATCH,
T_MATCH,
Expand Down

0 comments on commit ee9df63

Please sign in to comment.