Skip to content

Commit f54a5b6

Browse files
authored
[CLEANUP] Avoid Hungarian notation for value (#1063)
Part of #756
1 parent 4a12d1f commit f54a5b6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Value/Value.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,39 +152,39 @@ public static function parseIdentifierOrFunction(ParserState $parserState, $igno
152152
*/
153153
public static function parsePrimitiveValue(ParserState $parserState)
154154
{
155-
$oValue = null;
155+
$value = null;
156156
$parserState->consumeWhiteSpace();
157157
if (
158158
\is_numeric($parserState->peek())
159159
|| ($parserState->comes('-.')
160160
&& \is_numeric($parserState->peek(1, 2)))
161161
|| (($parserState->comes('-') || $parserState->comes('.')) && \is_numeric($parserState->peek(1, 1)))
162162
) {
163-
$oValue = Size::parse($parserState);
163+
$value = Size::parse($parserState);
164164
} elseif ($parserState->comes('#') || $parserState->comes('rgb', true) || $parserState->comes('hsl', true)) {
165-
$oValue = Color::parse($parserState);
165+
$value = Color::parse($parserState);
166166
} elseif ($parserState->comes("'") || $parserState->comes('"')) {
167-
$oValue = CSSString::parse($parserState);
167+
$value = CSSString::parse($parserState);
168168
} elseif ($parserState->comes('progid:') && $parserState->getSettings()->usesLenientParsing()) {
169-
$oValue = self::parseMicrosoftFilter($parserState);
169+
$value = self::parseMicrosoftFilter($parserState);
170170
} elseif ($parserState->comes('[')) {
171-
$oValue = LineName::parse($parserState);
171+
$value = LineName::parse($parserState);
172172
} elseif ($parserState->comes('U+')) {
173-
$oValue = self::parseUnicodeRangeValue($parserState);
173+
$value = self::parseUnicodeRangeValue($parserState);
174174
} else {
175175
$sNextChar = $parserState->peek(1);
176176
try {
177-
$oValue = self::parseIdentifierOrFunction($parserState);
177+
$value = self::parseIdentifierOrFunction($parserState);
178178
} catch (UnexpectedTokenException $e) {
179179
if (\in_array($sNextChar, ['+', '-', '*', '/'], true)) {
180-
$oValue = $parserState->consume(1);
180+
$value = $parserState->consume(1);
181181
} else {
182182
throw $e;
183183
}
184184
}
185185
}
186186
$parserState->consumeWhiteSpace();
187-
return $oValue;
187+
return $value;
188188
}
189189

190190
/**

0 commit comments

Comments
 (0)