Skip to content

Commit

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

This sniff only concerns itself with control structures which take parentheses, so listening for `T_ELSE` is unnecessary as the sniff will never do anything for that token (it bows out on no 'parenthesis_opener'/'parenthesis_closer' found).
  • Loading branch information
jrfnl committed Aug 11, 2023
1 parent a813c38 commit 1e26c73
Showing 1 changed file with 0 additions and 1 deletion.
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 1e26c73

Please sign in to comment.