diff --git a/src/Value/Size.php b/src/Value/Size.php index 0f4fc4bb3..53723bed8 100644 --- a/src/Value/Size.php +++ b/src/Value/Size.php @@ -99,8 +99,8 @@ public static function parse(ParserState $parserState, $isColorComponent = false if ($parserState->comes('.')) { $size .= $parserState->consume('.'); } elseif ($parserState->comes('e', true)) { - $sLookahead = $parserState->peek(1, 1); - if (\is_numeric($sLookahead) || $sLookahead === '+' || $sLookahead === '-') { + $lookahead = $parserState->peek(1, 1); + if (\is_numeric($lookahead) || $lookahead === '+' || $lookahead === '-') { $size .= $parserState->consume(2); } else { break; // Reached the unit part of the number like "em" or "ex" @@ -112,10 +112,10 @@ public static function parse(ParserState $parserState, $isColorComponent = false $unit = null; $sizeUnits = self::getSizeUnits(); - foreach ($sizeUnits as $length => &$aValues) { - $sKey = \strtolower($parserState->peek($length)); - if (\array_key_exists($sKey, $aValues)) { - if (($unit = $aValues[$sKey]) !== null) { + foreach ($sizeUnits as $length => &$values) { + $key = \strtolower($parserState->peek($length)); + if (\array_key_exists($key, $values)) { + if (($unit = $values[$key]) !== null) { $parserState->consume($length); break; }