Code Duplication    Length = 8-9 lines in 2 locations

source/Spiral/Debug/Dumper.php 2 locations

@@ 194-202 (lines=9) @@
191
    {
192
        $indent = $this->style->indent($level);
193
194
        if (!$hideHeader) {
195
            $count = count($array);
196
197
            //Array size and scope
198
            $output = $this->style->style("array({$count})", "type", "array") . "\n";
199
            $output .= $indent . $this->style->style("[", "syntax", "[") . "\n";
200
        } else {
201
            $output = '';
202
        }
203
204
        foreach ($array as $key => $value) {
205
            if (!is_numeric($key)) {
@@ 235-242 (lines=8) @@
232
    {
233
        $indent = $this->style->indent($level);
234
235
        if (!$hideHeader) {
236
            $type = ($class ?: get_class($object)) . " object ";
237
238
            $header = $this->style->style($type, "type", "object") . "\n";
239
            $header .= $indent . $this->style->style("(", "syntax", "(") . "\n";
240
        } else {
241
            $header = '';
242
        }
243
244
        //Let's use method specifically created for dumping
245
        if (method_exists($object, '__debugInfo')) {