Code Duplication    Length = 7-9 lines in 2 locations

src/Kint.php 2 locations

@@ 358-364 (lines=7) @@
355
            $trace = array();
356
357
            // No need to normalize as we've already called it through getCalleeInfo at this point
358
            foreach ($data as $index => $frame) {
359
                if (Kint_Parser_Trace::frameIsListed($frame, self::$aliases)) {
360
                    $trace = array();
361
                }
362
363
                $trace[] = $frame;
364
            }
365
366
            $lastframe = reset($trace);
367
            $tracename = $lastframe['function'].'(1)';
@@ 498-506 (lines=9) @@
495
        Kint_Parser_Trace::normalizeAliases(self::$aliases);
496
        $miniTrace = array();
497
498
        foreach ($trace as $index => $frame) {
499
            if (Kint_Parser_Trace::frameIsListed($frame, self::$aliases)) {
500
                $miniTrace = array();
501
            }
502
503
            if (!Kint_Parser_Trace::frameIsListed($frame, array('spl_autoload_call'))) {
504
                $miniTrace[] = $frame;
505
            }
506
        }
507
508
        $callee = reset($miniTrace);
509
        $caller = next($miniTrace);