Code Duplication    Length = 8-9 lines in 2 locations

source/Spiral/Debug/Dumper.php 2 locations

@@ 211-219 (lines=9) @@
208
    {
209
        $indent = $this->style->indent($level);
210
211
        if (!$hideHeader) {
212
            $count = count($array);
213
214
            //Array size and scope
215
            $output = $this->style->style("array({$count})", "type", "array") . "\n";
216
            $output .= $indent . $this->style->style("[", "syntax", "[") . "\n";
217
        } else {
218
            $output = '';
219
        }
220
221
        foreach ($array as $key => $value) {
222
            if (!is_numeric($key)) {
@@ 252-259 (lines=8) @@
249
    {
250
        $indent = $this->style->indent($level);
251
252
        if (!$hideHeader) {
253
            $type = ($class ?: get_class($object)) . " object ";
254
255
            $header = $this->style->style($type, "type", "object") . "\n";
256
            $header .= $indent . $this->style->style("(", "syntax", "(") . "\n";
257
        } else {
258
            $header = '';
259
        }
260
261
        //Let's use method specifically created for dumping
262
        if (method_exists($object, '__debugInfo')) {