private function parseCompletedProcessesForFile(string $file, array $processes)
    {
        $commits = (integer) $this->parseCommits($processes['GitCommitProcess']);
        $complexity = (integer) $processes['CyclomaticComplexityProcess']->getOutput();

        $result = new Result([
            'file' => $file,
            'commits' => $commits,
            'complexity' => $complexity,
        ]);

        $this->resultsCollection->push($result);
    }
private function parseCompletedProcessesForFile(string $file, array $processes)
    {
        $commits = (integer) $this->parseCommits($processes['GitCommitProcess']);
        $complexity = (integer) $processes['CyclomaticComplexityProcess']->getOutput();

        $result = new Result([
            'file' => $file,
            'commits' => $commits,
            'complexity' => $complexity,
        ]);

        $this->resultsCollection->push($result);
    }
private function parseCompletedProcessesForFile ( string $ file , array $ processes ) { $ commits = ( integer ) $ this -> parseCommits ( $ processes [ 'GitCommitProcess' ] ) ; $ complexity = ( integer ) $ processes [ 'CyclomaticComplexityProcess' ] -> getOutput ( ) ; $ result = new Result ( [ 'file' => $ file , 'commits' => $ commits , 'complexity' => $ complexity , ] ) ; $ this -> resultsCollection -> push ( $ result ) ; }
Parse the list of processes for a file.
@param string $file      The file the processes were executed on.
@param array  $processes The processes that were executed on the file.
@return void
Parse the list of processes for a file .