Skip to content

Commit 529bcba

Browse files
committed
Remove another unreacheable condition
1 parent 45e6cd7 commit 529bcba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Standards/Generic/Sniffs/CodeAnalysis/EmptyPHPStatementSniff.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ public function process(File $phpcsFile, $stackPtr)
124124
case 'T_CLOSE_TAG':
125125
$prevNonEmpty = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
126126

127-
if ($prevNonEmpty === false
128-
|| ($tokens[$prevNonEmpty]['code'] !== T_OPEN_TAG
129-
&& $tokens[$prevNonEmpty]['code'] !== T_OPEN_TAG_WITH_ECHO)
127+
if ($tokens[$prevNonEmpty]['code'] !== T_OPEN_TAG
128+
&& $tokens[$prevNonEmpty]['code'] !== T_OPEN_TAG_WITH_ECHO
130129
) {
131130
return;
132131
}

0 commit comments

Comments
 (0)