| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| 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 | if (\in_array($ruleValue, ['normal', 'break-word'])) { |
||
| 27 | $normalized = ['word-wrap' => $ruleValue]; |
||
| 28 | } else { |
||
| 29 | $normalized = ['word-wrap' => 'normal']; |
||
| 30 | } |
||
| 31 | return $this->normalized = $normalized; |
||
| 32 | } |
||
| 34 |