Skip to content

Commit 553b55f

Browse files
committed
Squiz/FunctionDeclarationArgumentSpacing: remove redundant conditions
The `isset()`'s in the same condition block already take care of this.
1 parent 426c4fc commit 553b55f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public function process(File $phpcsFile, $stackPtr)
7070

7171
if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
7272
|| isset($tokens[$stackPtr]['parenthesis_closer']) === false
73-
|| $tokens[$stackPtr]['parenthesis_opener'] === null
74-
|| $tokens[$stackPtr]['parenthesis_closer'] === null
7573
) {
7674
return;
7775
}

0 commit comments

Comments
 (0)