Skip to content

Commit 8dcc1a5

Browse files
authored
[CLEANUP] Avoid Hungarian notation for nestingLevel (#1071)
Part of #756
1 parent 74dd4a7 commit 8dcc1a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Value/CalcFunction.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ public static function parse(ParserState $parserState, bool $ignoreCase = false)
4040
$parserState->consume('(');
4141
$oCalcList = new CalcRuleValueList($parserState->currentLine());
4242
$list = new RuleValueList(',', $parserState->currentLine());
43-
$iNestingLevel = 0;
43+
$nestingLevel = 0;
4444
$iLastComponentType = null;
45-
while (!$parserState->comes(')') || $iNestingLevel > 0) {
46-
if ($parserState->isEnd() && $iNestingLevel === 0) {
45+
while (!$parserState->comes(')') || $nestingLevel > 0) {
46+
if ($parserState->isEnd() && $nestingLevel === 0) {
4747
break;
4848
}
4949

5050
$parserState->consumeWhiteSpace();
5151
if ($parserState->comes('(')) {
52-
$iNestingLevel++;
52+
$nestingLevel++;
5353
$oCalcList->addListComponent($parserState->consume(1));
5454
$parserState->consumeWhiteSpace();
5555
continue;
5656
} elseif ($parserState->comes(')')) {
57-
$iNestingLevel--;
57+
$nestingLevel--;
5858
$oCalcList->addListComponent($parserState->consume(1));
5959
$parserState->consumeWhiteSpace();
6060
continue;

0 commit comments

Comments
 (0)