Skip to content

Commit 272aa59

Browse files
committed
Squiz/NonExecutableCode: remove redundant line
`$prev` is already defined in exactly the same way on line 66. No need to re-define it.
1 parent ed8e00d commit 272aa59

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public function process(File $phpcsFile, $stackPtr)
139139
// This token may be part of an inline condition.
140140
// If we find a closing parenthesis that belongs to a condition
141141
// we should ignore this token.
142-
$prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
143142
if (isset($tokens[$prev]['parenthesis_owner']) === true) {
144143
$owner = $tokens[$prev]['parenthesis_owner'];
145144
$ignore = [

0 commit comments

Comments
 (0)