Skip to content

Commit ac90631

Browse files
💄 Clean condition
1 parent fe9837d commit ac90631

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TwigCS/Sniff/AbstractSniff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public function getReport()
7777
*/
7878
public function isTokenMatching(Token $token, $type, $value = null)
7979
{
80-
return $token->getType() === $type
81-
&& (null === $value || (null !== $value && $token->getValue() === $value));
80+
return $token->getType() === $type && (null === $value || $token->getValue() === $value);
8281
}
8382

8483
/**

0 commit comments

Comments
 (0)