Skip to content

Commit c3f2d25

Browse files
committed
[CLEANUP] Avoid Hungarian notation for operators
Part of #756
1 parent fbe1ece commit c3f2d25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Value/CalcFunction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CalcFunction extends CSSFunction
2828
*/
2929
public static function parse(ParserState $parserState, bool $ignoreCase = false): CSSFunction
3030
{
31-
$aOperators = ['+', '-', '*', '/'];
31+
$operators = ['+', '-', '*', '/'];
3232
$function = $parserState->parseIdentifier();
3333
if ($parserState->peek() != '(') {
3434
// Found ; or end of line before an opening bracket
@@ -64,7 +64,7 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
6464
$calcRuleValueList->addListComponent($oVal);
6565
$iLastComponentType = CalcFunction::T_OPERAND;
6666
} else {
67-
if (\in_array($parserState->peek(), $aOperators, true)) {
67+
if (\in_array($parserState->peek(), $operators, true)) {
6868
if (($parserState->comes('-') || $parserState->comes('+'))) {
6969
if (
7070
$parserState->peek(1, -1) != ' '
@@ -85,7 +85,7 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
8585
throw new UnexpectedTokenException(
8686
\sprintf(
8787
'Next token was expected to be an operand of type %s. Instead "%s" was found.',
88-
\implode(', ', $aOperators),
88+
\implode(', ', $operators),
8989
$parserState->peek()
9090
),
9191
'',

0 commit comments

Comments
 (0)