Skip to content

Commit 1e26c73

Browse files
committed
PSR2/ControlStructureSpacing: don't listen for T_ELSE
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).
1 parent a813c38 commit 1e26c73

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public function register()
4444
T_FOREACH,
4545
T_FOR,
4646
T_SWITCH,
47-
T_ELSE,
4847
T_ELSEIF,
4948
T_CATCH,
5049
T_MATCH,

0 commit comments

Comments
 (0)