| Conditions | 4 |
| Paths | 8 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 20 | public function render(array $style) |
|
| 25 | { |
||
| 26 | 20 | $result = []; |
|
| 27 | |||
| 28 | 20 | if (isset($style['feature'])) { |
|
| 29 | 8 | $result[] = $this->renderStyle('feature', $style['feature']); |
|
| 30 | 4 | } |
|
| 31 | |||
| 32 | 20 | if (isset($style['element'])) { |
|
| 33 | 8 | $result[] = $this->renderStyle('element', $style['element']); |
|
| 34 | 4 | } |
|
| 35 | |||
| 36 | 20 | foreach ($style['rules'] as $rule => $value) { |
|
| 37 | 20 | $result[] = $this->renderStyle($rule, $value); |
|
| 38 | 10 | } |
|
| 39 | |||
| 40 | 20 | return implode('|', $result); |
|
| 41 | } |
||
| 42 | |||
| 54 |