File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,13 @@ private static function getSizeUnits()
131131 {
132132 if (!\is_array (self ::$ SIZE_UNITS )) {
133133 self ::$ SIZE_UNITS = [];
134- foreach (\array_merge (self ::ABSOLUTE_SIZE_UNITS , self ::RELATIVE_SIZE_UNITS , self ::NON_SIZE_UNITS ) as $ val ) {
135- $ tokenLength = \strlen ($ val );
134+ $ sizeUnits = \array_merge (self ::ABSOLUTE_SIZE_UNITS , self ::RELATIVE_SIZE_UNITS , self ::NON_SIZE_UNITS );
135+ foreach ($ sizeUnits as $ sizeUnit ) {
136+ $ tokenLength = \strlen ($ sizeUnit );
136137 if (!isset (self ::$ SIZE_UNITS [$ tokenLength ])) {
137138 self ::$ SIZE_UNITS [$ tokenLength ] = [];
138139 }
139- self ::$ SIZE_UNITS [$ tokenLength ][\strtolower ($ val )] = $ val ;
140+ self ::$ SIZE_UNITS [$ tokenLength ][\strtolower ($ sizeUnit )] = $ sizeUnit ;
140141 }
141142
142143 \krsort (self ::$ SIZE_UNITS , SORT_NUMERIC );
You can’t perform that action at this time.
0 commit comments