@@ -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