@@ -30,7 +30,7 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
3030 {
3131 $ operators = ['+ ' , '- ' , '* ' , '/ ' ];
3232 $ function = $ parserState ->parseIdentifier ();
33- if ($ parserState ->peek () != '( ' ) {
33+ if ($ parserState ->peek () !== '( ' ) {
3434 // Found ; or end of line before an opening bracket
3535 throw new UnexpectedTokenException ('( ' , $ parserState ->peek (), 'literal ' , $ parserState ->currentLine ());
3636 } elseif ($ function !== 'calc ' ) {
@@ -59,15 +59,15 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
5959 $ parserState ->consumeWhiteSpace ();
6060 continue ;
6161 }
62- if ($ lastComponentType != CalcFunction::T_OPERAND ) {
62+ if ($ lastComponentType !== CalcFunction::T_OPERAND ) {
6363 $ value = Value::parsePrimitiveValue ($ parserState );
6464 $ calcRuleValueList ->addListComponent ($ value );
6565 $ lastComponentType = CalcFunction::T_OPERAND ;
6666 } else {
6767 if (\in_array ($ parserState ->peek (), $ operators , true )) {
6868 if (($ parserState ->comes ('- ' ) || $ parserState ->comes ('+ ' ))) {
6969 if (
70- $ parserState ->peek (1 , -1 ) != ' '
70+ $ parserState ->peek (1 , -1 ) !== ' '
7171 || !($ parserState ->comes ('- ' )
7272 || $ parserState ->comes ('+ ' ))
7373 ) {
0 commit comments