| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function normalize($ruleValue, string $ruleName = ''): array |
||
| 22 | { |
||
| 23 | if (null !== $this->normalized) { |
||
| 24 | return $this->normalized; |
||
| 25 | } |
||
| 26 | $ruleValue = strtolower($ruleValue); |
||
| 27 | if (!\in_array($ruleValue, ['normal', 'italic'])) { |
||
| 28 | $ruleValue = 'normal'; |
||
| 29 | } |
||
| 30 | return $this->normalized = ['font-style' => $ruleValue]; |
||
| 31 | } |
||
| 33 |