@@ -99,8 +99,8 @@ public static function parse(ParserState $parserState, $isColorComponent = false
99
99
if ($ parserState ->comes ('. ' )) {
100
100
$ size .= $ parserState ->consume ('. ' );
101
101
} 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 === '- ' ) {
104
104
$ size .= $ parserState ->consume (2 );
105
105
} else {
106
106
break ; // Reached the unit part of the number like "em" or "ex"
@@ -112,10 +112,10 @@ public static function parse(ParserState $parserState, $isColorComponent = false
112
112
113
113
$ unit = null ;
114
114
$ 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 ) {
119
119
$ parserState ->consume ($ length );
120
120
break ;
121
121
}
0 commit comments