Skip to content

Commit 07b4db0

Browse files
authored
[CLEANUP] Avoid Hungarian notation in DeclarationBlock (#1105)
Part of #756
1 parent 4f45adb commit 07b4db0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RuleSet/DeclarationBlock.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ public static function parse(ParserState $parserState, $list = null)
4444
$comments = [];
4545
$result = new DeclarationBlock($parserState->currentLine());
4646
try {
47-
$aSelectorParts = [];
47+
$selectorParts = [];
4848
do {
49-
$aSelectorParts[] = $parserState->consume(1)
49+
$selectorParts[] = $parserState->consume(1)
5050
. $parserState->consumeUntil(['{', '}', '\'', '"'], false, false, $comments);
51-
if (\in_array($parserState->peek(), ['\'', '"'], true) && \substr(\end($aSelectorParts), -1) != '\\') {
51+
if (\in_array($parserState->peek(), ['\'', '"'], true) && \substr(\end($selectorParts), -1) != '\\') {
5252
if (!isset($stringWrapperCharacter)) {
5353
$stringWrapperCharacter = $parserState->peek();
5454
} elseif ($stringWrapperCharacter === $parserState->peek()) {
5555
unset($stringWrapperCharacter);
5656
}
5757
}
5858
} while (!\in_array($parserState->peek(), ['{', '}'], true) || isset($stringWrapperCharacter));
59-
$result->setSelectors(\implode('', $aSelectorParts), $list);
59+
$result->setSelectors(\implode('', $selectorParts), $list);
6060
if ($parserState->comes('{')) {
6161
$parserState->consume(1);
6262
}

0 commit comments

Comments
 (0)