PDepend\Metrics\Analyzer\NodeLocAnalyzer::updateProjectMetrics PHP Method

updateProjectMetrics() private method

Updates the project metrics based on the node metrics identifier by the given $id.
private updateProjectMetrics ( string $id ) : void
$id string The unique identifier of a node.
return void
    private function updateProjectMetrics($id)
    {
        foreach ($this->metrics[$id] as $metric => $value) {
            $this->projectMetrics[$metric] += $value;
        }
    }