Code Duplication    Length = 5-5 lines in 2 locations

src/Xhgui/Profile.php 2 locations

@@ 533-537 (lines=5) @@
530
        $this->calculateSelf();
531
532
        // Non exclusive metrics are always main() because it is the root call scope.
533
        if (in_array($metric, $this->_exclusiveKeys)) {
534
            $main = $this->_maxValue($metric);
535
        } else {
536
            $main = $this->_collapsed['main()'][$metric];
537
        }
538
539
        $this->_visited = $this->_nodes = $this->_links = array();
540
        $this->_callgraphData(self::NO_PARENT, $main, $metric, $threshold);
@@ 615-619 (lines=5) @@
612
        $this->calculateSelf();
613
614
        // Non exclusive metrics are always main() because it is the root call scope.
615
        if (in_array($metric, $this->_exclusiveKeys)) {
616
            $main = $this->_maxValue($metric);
617
        } else {
618
            $main = $this->_collapsed['main()'][$metric];
619
        }
620
621
        $this->_visited = $this->_nodes = $this->_links = array();
622
        $flamegraph = $this->_flamegraphData(self::NO_PARENT, $main, $metric, $threshold);