Skip to content

Commit fd003f7

Browse files
committed
[CLEANUP] Avoid Hungarian notation for calcRuleValueList
Part of #756
1 parent c2d2bb4 commit fd003f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Value/CalcFunction.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
3838
throw new UnexpectedTokenException('calc', $function, 'literal', $parserState->currentLine());
3939
}
4040
$parserState->consume('(');
41-
$oCalcList = new CalcRuleValueList($parserState->currentLine());
41+
$calcRuleValueList = new CalcRuleValueList($parserState->currentLine());
4242
$list = new RuleValueList(',', $parserState->currentLine());
4343
$nestingLevel = 0;
4444
$iLastComponentType = null;
@@ -50,18 +50,18 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
5050
$parserState->consumeWhiteSpace();
5151
if ($parserState->comes('(')) {
5252
$nestingLevel++;
53-
$oCalcList->addListComponent($parserState->consume(1));
53+
$calcRuleValueList->addListComponent($parserState->consume(1));
5454
$parserState->consumeWhiteSpace();
5555
continue;
5656
} elseif ($parserState->comes(')')) {
5757
$nestingLevel--;
58-
$oCalcList->addListComponent($parserState->consume(1));
58+
$calcRuleValueList->addListComponent($parserState->consume(1));
5959
$parserState->consumeWhiteSpace();
6060
continue;
6161
}
6262
if ($iLastComponentType != CalcFunction::T_OPERAND) {
6363
$oVal = Value::parsePrimitiveValue($parserState);
64-
$oCalcList->addListComponent($oVal);
64+
$calcRuleValueList->addListComponent($oVal);
6565
$iLastComponentType = CalcFunction::T_OPERAND;
6666
} else {
6767
if (\in_array($parserState->peek(), $aOperators, true)) {
@@ -79,7 +79,7 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
7979
);
8080
}
8181
}
82-
$oCalcList->addListComponent($parserState->consume(1));
82+
$calcRuleValueList->addListComponent($parserState->consume(1));
8383
$iLastComponentType = CalcFunction::T_OPERATOR;
8484
} else {
8585
throw new UnexpectedTokenException(
@@ -96,7 +96,7 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
9696
}
9797
$parserState->consumeWhiteSpace();
9898
}
99-
$list->addListComponent($oCalcList);
99+
$list->addListComponent($calcRuleValueList);
100100
if (!$parserState->isEnd()) {
101101
$parserState->consume(')');
102102
}

0 commit comments

Comments
 (0)