Skip to content

Commit c90e96c

Browse files
committed
Changes suggested in code review
1 parent be178dc commit c90e96c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/RuleSet/DeclarationBlock.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ public static function parse(ParserState $parserState, $list = null)
4545
$result = new DeclarationBlock($parserState->currentLine());
4646
try {
4747
$aSelectorParts = [];
48-
$stringWrapperChar = false;
48+
$stringWrapperCharacter = false;
4949
do {
5050
$aSelectorParts[] = $parserState->consume(1)
5151
. $parserState->consumeUntil(['{', '}', '\'', '"'], false, false, $comments);
5252
if (\in_array($parserState->peek(), ['\'', '"'], true) && \substr(\end($aSelectorParts), -1) != '\\') {
53-
if ($stringWrapperChar === false) {
54-
$stringWrapperChar = $parserState->peek();
55-
} elseif ($stringWrapperChar == $parserState->peek()) {
56-
$stringWrapperChar = false;
53+
if ($stringWrapperCharacter === false) {
54+
$stringWrapperCharacter = $parserState->peek();
55+
} elseif ($stringWrapperCharacter == $parserState->peek()) {
56+
$stringWrapperCharacter = false;
5757
}
5858
}
59-
} while (!\in_array($parserState->peek(), ['{', '}'], true) || $stringWrapperChar !== false);
59+
} while (!\in_array($parserState->peek(), ['{', '}'], true) || $stringWrapperCharacter !== false);
6060
$result->setSelectors(\implode('', $aSelectorParts), $list);
6161
if ($parserState->comes('{')) {
6262
$parserState->consume(1);

0 commit comments

Comments
 (0)