File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ public static function parse(ParserState $oParserState, $bIsColorComponent = fal
37
37
}
38
38
39
39
$ sUnit = null ;
40
- foreach (self ::getSizeUnits () as $ iLength => &$ aValues ) {
40
+ $ aSizeUnits = self ::getSizeUnits ();
41
+ foreach ($ aSizeUnits as $ iLength => &$ aValues ) {
41
42
$ sKey = strtolower ($ oParserState ->peek ($ iLength ));
42
43
if (array_key_exists ($ sKey , $ aValues )) {
43
44
if (($ sUnit = $ aValues [$ sKey ]) !== null ) {
@@ -51,7 +52,7 @@ public static function parse(ParserState $oParserState, $bIsColorComponent = fal
51
52
52
53
private static function getSizeUnits () {
53
54
if (self ::$ SIZE_UNITS === null ) {
54
- self ::$ SIZE_UNITS = [] ;
55
+ self ::$ SIZE_UNITS = array () ;
55
56
foreach (explode ('/ ' , Size::ABSOLUTE_SIZE_UNITS .'/ ' .Size::RELATIVE_SIZE_UNITS .'/ ' .Size::NON_SIZE_UNITS ) as $ val ) {
56
57
$ iSize = strlen ($ val );
57
58
if (!isset (self ::$ SIZE_UNITS [$ iSize ])) {
You can’t perform that action at this time.
0 commit comments