We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edde774 commit 2e25458Copy full SHA for 2e25458
src/Value/Color.php
@@ -30,11 +30,10 @@ public function __construct(array $aColor, $iLineNo = 0)
30
*/
31
public static function parse(ParserState $oParserState, bool $bIgnoreCase = false): CSSFunction
32
{
33
- if ($oParserState->comes('#')) {
34
- return self::parseHexColor($oParserState);
35
- } else {
36
- return self::parseColorFunction($oParserState);
37
- }
+ return
+ $oParserState->comes('#')
+ ? self::parseHexColor($oParserState)
+ : self::parseColorFunction($oParserState);
38
}
39
40
/**
0 commit comments