Skip to content

Commit adcaad4

Browse files
committed
Generic/DisallowYodaConditions: remove incorrect code comment
1 parent a925b44 commit adcaad4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public function process(File $phpcsFile, $stackPtr)
8080

8181
// Is it a parenthesis.
8282
if ($tokens[$previousIndex]['code'] === T_CLOSE_PARENTHESIS) {
83-
// Check what exists inside the parenthesis.
8483
$beforeOpeningParenthesisIndex = $phpcsFile->findPrevious(
8584
Tokens::$emptyTokens,
8685
($tokens[$previousIndex]['parenthesis_opener'] - 1),

0 commit comments

Comments
 (0)