Skip to content

Commit

Permalink
Generic/DisallowYodaConditions: remove incorrect code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo committed May 3, 2024
1 parent a925b44 commit adcaad4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public function process(File $phpcsFile, $stackPtr)

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

0 comments on commit adcaad4

Please sign in to comment.