Conditions | 3 |
Paths | 4 |
Total Lines | 24 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
82 | private function renderLines() : array |
||
83 | { |
||
84 | $lines = array(); |
||
85 | $styles = $this->collection->getStyles(); |
||
86 | $indent = $this->resolveIndent(); |
||
87 | $valueSpace = $this->resolveValueSpace(); |
||
88 | |||
89 | if($this->options->isSortingEnabled()) |
||
90 | { |
||
91 | ksort($styles); |
||
92 | } |
||
93 | |||
94 | foreach($styles as $name => $value) |
||
95 | { |
||
96 | $lines[] = sprintf( |
||
97 | '%s%s:%s%s', |
||
98 | $indent, |
||
99 | $name, |
||
100 | $valueSpace, |
||
101 | $value |
||
102 | ); |
||
103 | } |
||
104 | |||
105 | return $lines; |
||
106 | } |
||
108 |