Skip to content

Commit 150007c

Browse files
authored
[CLEANUP] Avoid Hungarian notation in Size (#1111)
Part of #756
1 parent 67eb105 commit 150007c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Value/Size.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ public static function parse(ParserState $parserState, $isColorComponent = false
9999
if ($parserState->comes('.')) {
100100
$size .= $parserState->consume('.');
101101
} elseif ($parserState->comes('e', true)) {
102-
$sLookahead = $parserState->peek(1, 1);
103-
if (\is_numeric($sLookahead) || $sLookahead === '+' || $sLookahead === '-') {
102+
$lookahead = $parserState->peek(1, 1);
103+
if (\is_numeric($lookahead) || $lookahead === '+' || $lookahead === '-') {
104104
$size .= $parserState->consume(2);
105105
} else {
106106
break; // Reached the unit part of the number like "em" or "ex"
@@ -112,10 +112,10 @@ public static function parse(ParserState $parserState, $isColorComponent = false
112112

113113
$unit = null;
114114
$sizeUnits = self::getSizeUnits();
115-
foreach ($sizeUnits as $length => &$aValues) {
116-
$sKey = \strtolower($parserState->peek($length));
117-
if (\array_key_exists($sKey, $aValues)) {
118-
if (($unit = $aValues[$sKey]) !== null) {
115+
foreach ($sizeUnits as $length => &$values) {
116+
$key = \strtolower($parserState->peek($length));
117+
if (\array_key_exists($key, $values)) {
118+
if (($unit = $values[$key]) !== null) {
119119
$parserState->consume($length);
120120
break;
121121
}

0 commit comments

Comments
 (0)