From 5e690721e7e1445b66bc36398da7fe6fa97c110b Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 4 Mar 2025 11:22:23 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `value` Part of #756 --- src/Value/Value.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Value/Value.php b/src/Value/Value.php index c14d74fa..a93d0859 100644 --- a/src/Value/Value.php +++ b/src/Value/Value.php @@ -152,7 +152,7 @@ public static function parseIdentifierOrFunction(ParserState $parserState, $igno */ public static function parsePrimitiveValue(ParserState $parserState) { - $oValue = null; + $value = null; $parserState->consumeWhiteSpace(); if ( \is_numeric($parserState->peek()) @@ -160,31 +160,31 @@ public static function parsePrimitiveValue(ParserState $parserState) && \is_numeric($parserState->peek(1, 2))) || (($parserState->comes('-') || $parserState->comes('.')) && \is_numeric($parserState->peek(1, 1))) ) { - $oValue = Size::parse($parserState); + $value = Size::parse($parserState); } elseif ($parserState->comes('#') || $parserState->comes('rgb', true) || $parserState->comes('hsl', true)) { - $oValue = Color::parse($parserState); + $value = Color::parse($parserState); } elseif ($parserState->comes("'") || $parserState->comes('"')) { - $oValue = CSSString::parse($parserState); + $value = CSSString::parse($parserState); } elseif ($parserState->comes('progid:') && $parserState->getSettings()->usesLenientParsing()) { - $oValue = self::parseMicrosoftFilter($parserState); + $value = self::parseMicrosoftFilter($parserState); } elseif ($parserState->comes('[')) { - $oValue = LineName::parse($parserState); + $value = LineName::parse($parserState); } elseif ($parserState->comes('U+')) { - $oValue = self::parseUnicodeRangeValue($parserState); + $value = self::parseUnicodeRangeValue($parserState); } else { $sNextChar = $parserState->peek(1); try { - $oValue = self::parseIdentifierOrFunction($parserState); + $value = self::parseIdentifierOrFunction($parserState); } catch (UnexpectedTokenException $e) { if (\in_array($sNextChar, ['+', '-', '*', '/'], true)) { - $oValue = $parserState->consume(1); + $value = $parserState->consume(1); } else { throw $e; } } } $parserState->consumeWhiteSpace(); - return $oValue; + return $value; } /**