Skip to content

Commit e79fdb7

Browse files
authored
Merge pull request #1386 from rodrigoprimo/inline-control-structure-remove-unreacheable-line
Generic/InlineControlStructure: remove unreachable if condition
2 parents 6d256e8 + 80059d6 commit e79fdb7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ public function process(File $phpcsFile, int $stackPtr)
115115
}
116116

117117
$nextNonEmpty = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, ($start + 1), null, true);
118-
if ($nextNonEmpty === false) {
119-
// Live coding or parse error.
120-
return;
121-
}
122118

123119
if ($tokens[$nextNonEmpty]['code'] === T_OPEN_CURLY_BRACKET
124120
|| $tokens[$nextNonEmpty]['code'] === T_COLON

0 commit comments

Comments
 (0)