Skip to content

Commit 3168190

Browse files
committed
PEAR/FunctionDeclaration: remove redundant conditions
The `isset()`'s in the same condition block already take care of this.
1 parent 30f78b5 commit 3168190

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php

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

6767
if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
6868
|| isset($tokens[$stackPtr]['parenthesis_closer']) === false
69-
|| $tokens[$stackPtr]['parenthesis_opener'] === null
70-
|| $tokens[$stackPtr]['parenthesis_closer'] === null
7169
) {
7270
return;
7371
}

0 commit comments

Comments
 (0)