← All changes
|
modules/atomic-widgets/css-converter/expanders/physical-to-logical-expander.php
+7
-4
4.2.0-beta1
→
trunk
View file →
| @@ -26,17 +26,20 @@ | ||
| 26 | 26 | protected function get_supported_properties(): array { |
| 27 | 27 | return array_keys( self::PHYSICAL_TO_LOGICAL ); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function expand( array $rule ): array { | |
| 30 | + protected function expand_null( array $rule ): array { | |
| 31 | + return [ $this->null_rule( self::PHYSICAL_TO_LOGICAL[ $rule['property'] ] ) ]; | |
| 32 | + } | |
| 33 | + | |
| 34 | + protected function do_expand( array $rule ): array { | |
| 31 | 35 | $logical = self::PHYSICAL_TO_LOGICAL[ $rule['property'] ]; |
| 32 | - $value = $rule['value']; | |
| 33 | 36 | |
| 34 | 37 | return [ |
| 35 | 38 | [ |
| 36 | 39 | 'property' => $logical, |
| 37 | - 'value' => $value, | |
| 38 | - 'declaration' => $logical . ': ' . $value, | |
| 40 | + 'value' => $rule['value'], | |
| 41 | + 'declaration' => $logical . ': ' . $rule['value'], | |
| 39 | 42 | ], |
| 40 | 43 | ]; |
| 41 | 44 | } |
| 42 | 45 | } |