Skip to content

Commit 2e25458

Browse files
committed
Change suggested in code review.
1 parent edde774 commit 2e25458

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Value/Color.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ public function __construct(array $aColor, $iLineNo = 0)
3030
*/
3131
public static function parse(ParserState $oParserState, bool $bIgnoreCase = false): CSSFunction
3232
{
33-
if ($oParserState->comes('#')) {
34-
return self::parseHexColor($oParserState);
35-
} else {
36-
return self::parseColorFunction($oParserState);
37-
}
33+
return
34+
$oParserState->comes('#')
35+
? self::parseHexColor($oParserState)
36+
: self::parseColorFunction($oParserState);
3837
}
3938

4039
/**

0 commit comments

Comments
 (0)