@@ -29,13 +29,13 @@ class CalcFunction extends CSSFunction
29
29
public static function parse (ParserState $ parserState , bool $ ignoreCase = false ): CSSFunction
30
30
{
31
31
$ aOperators = ['+ ' , '- ' , '* ' , '/ ' ];
32
- $ sFunction = $ parserState ->parseIdentifier ();
32
+ $ function = $ parserState ->parseIdentifier ();
33
33
if ($ parserState ->peek () != '( ' ) {
34
34
// Found ; or end of line before an opening bracket
35
35
throw new UnexpectedTokenException ('( ' , $ parserState ->peek (), 'literal ' , $ parserState ->currentLine ());
36
- } elseif (!\in_array ($ sFunction , ['calc ' , '-moz-calc ' , '-webkit-calc ' ], true )) {
36
+ } elseif (!\in_array ($ function , ['calc ' , '-moz-calc ' , '-webkit-calc ' ], true )) {
37
37
// Found invalid calc definition. Example calc (...
38
- throw new UnexpectedTokenException ('calc ' , $ sFunction , 'literal ' , $ parserState ->currentLine ());
38
+ throw new UnexpectedTokenException ('calc ' , $ function , 'literal ' , $ parserState ->currentLine ());
39
39
}
40
40
$ parserState ->consume ('( ' );
41
41
$ oCalcList = new CalcRuleValueList ($ parserState ->currentLine ());
@@ -100,6 +100,6 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
100
100
if (!$ parserState ->isEnd ()) {
101
101
$ parserState ->consume (') ' );
102
102
}
103
- return new CalcFunction ($ sFunction , $ list , ', ' , $ parserState ->currentLine ());
103
+ return new CalcFunction ($ function , $ list , ', ' , $ parserState ->currentLine ());
104
104
}
105
105
}
0 commit comments