Code Duplication    Length = 5-5 lines in 2 locations

src/Xhgui/Profile.php 2 locations

@@ 541-545 (lines=5) @@
538
        $this->calculateSelf();
539
540
        // Non exclusive metrics are always main() because it is the root call scope.
541
        if (in_array($metric, $this->_exclusiveKeys)) {
542
            $main = $this->_maxValue($metric);
543
        } else {
544
            $main = $this->_collapsed['main()'][$metric];
545
        }
546
547
        $this->_visited = $this->_nodes = $this->_links = array();
548
        $this->_callgraphData(self::NO_PARENT, $main, $metric, $threshold);
@@ 623-627 (lines=5) @@
620
        $this->calculateSelf();
621
622
        // Non exclusive metrics are always main() because it is the root call scope.
623
        if (in_array($metric, $this->_exclusiveKeys)) {
624
            $main = $this->_maxValue($metric);
625
        } else {
626
            $main = $this->_collapsed['main()'][$metric];
627
        }
628
629
        $this->_visited = $this->_nodes = $this->_links = array();
630
        $flamegraph = $this->_flamegraphData(self::NO_PARENT, $main, $metric, $threshold);