Skip to content

Commit 13a118a

Browse files
authored
[CLEANUP] Avoid Hungarian notation for quote (#1080) (#1081)
Part of #756
1 parent f398e30 commit 13a118a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Value/CSSString.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,24 @@ public function __construct($string, $lineNumber = 0)
4242
public static function parse(ParserState $parserState): CSSString
4343
{
4444
$begin = $parserState->peek();
45-
$sQuote = null;
45+
$quote = null;
4646
if ($begin === "'") {
47-
$sQuote = "'";
47+
$quote = "'";
4848
} elseif ($begin === '"') {
49-
$sQuote = '"';
49+
$quote = '"';
5050
}
51-
if ($sQuote !== null) {
52-
$parserState->consume($sQuote);
51+
if ($quote !== null) {
52+
$parserState->consume($quote);
5353
}
5454
$result = '';
5555
$sContent = null;
56-
if ($sQuote === null) {
56+
if ($quote === null) {
5757
// Unquoted strings end in whitespace or with braces, brackets, parentheses
5858
while (\preg_match('/[\\s{}()<>\\[\\]]/isu', $parserState->peek()) !== 1) {
5959
$result .= $parserState->parseCharacter(false);
6060
}
6161
} else {
62-
while (!$parserState->comes($sQuote)) {
62+
while (!$parserState->comes($quote)) {
6363
$sContent = $parserState->parseCharacter(false);
6464
if ($sContent === null) {
6565
throw new SourceException(
@@ -69,7 +69,7 @@ public static function parse(ParserState $parserState): CSSString
6969
}
7070
$result .= $sContent;
7171
}
72-
$parserState->consume($sQuote);
72+
$parserState->consume($quote);
7373
}
7474
return new CSSString($result, $parserState->currentLine());
7575
}

0 commit comments

Comments
 (0)