Code Duplication    Length = 3-4 lines in 2 locations

src/Tree.php 2 locations

@@ 157-160 (lines=4) @@
154
        $hasSelector = isset($node->selector{0}) && !in_array($node->selector, array('html', 'body'));
155
156
        // Output less node with spaces
157
        if ($hasSelector) {
158
            $output .= implode('', array_fill(0, $level, '  ')) . $node . ' {' . "\n";
159
        }
160
161
        foreach ($node->children as $child) {
162
            $this->output($child, $output, $hasSelector ? $level + 1 : $level);
163
        }
@@ 166-168 (lines=3) @@
163
        }
164
165
        // Close less node with spaces
166
        if ($hasSelector) {
167
            $output .= implode('', array_fill(0, $level, '  ')) . '}' . "\n";
168
        }
169
170
        return $output;
171
    }