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