Conditions | 6 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function blockLines(OutputBlock $block) |
||
43 | { |
||
44 | $inner = $this->indentStr(); |
||
45 | |||
46 | $glue = $this->break . $inner; |
||
47 | |||
48 | foreach ($block->lines as $index => $line) { |
||
49 | if (substr($line, 0, 2) === '/*' && substr($line, 2, 1) !== '!') { |
||
50 | unset($block->lines[$index]); |
||
51 | } elseif (substr($line, 0, 3) === '/*!') { |
||
52 | $block->lines[$index] = '/*' . substr($line, 3); |
||
53 | } |
||
54 | } |
||
55 | |||
56 | $this->write($inner . implode($glue, $block->lines)); |
||
57 | |||
58 | if (! empty($block->children)) { |
||
59 | $this->write($this->break); |
||
60 | } |
||
63 |