Skip to content

Commit f9b9c7e

Browse files
committed
Remove useless if condition
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent 71d6acd commit f9b9c7e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Utils/Tokens.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ public static function match(Token $token, array $pattern)
5555
}
5656

5757
// Flags.
58-
if (isset($pattern['flags'])
59-
&& (($pattern['flags'] & $token->flags) === 0)
60-
) {
61-
return false;
62-
}
63-
64-
return true;
58+
return ! isset($pattern['flags'])
59+
|| (! (($pattern['flags'] & $token->flags) === 0));
6560
}
6661

6762
public static function replaceTokens($list, array $find, array $replace)

0 commit comments

Comments
 (0)