Skip to content

Commit f4ac654

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

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function register()
3838
T_FOREACH,
3939
T_FOR,
4040
T_SWITCH,
41-
T_ELSE,
4241
T_ELSEIF,
4342
T_CATCH,
4443
T_MATCH,

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)