Code Duplication    Length = 8-9 lines in 2 locations

source/Spiral/Debug/Dumper.php 2 locations

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