private function parseCommits(ChurnProcess $process): int
    {
        $output = $process->getOutput();
        preg_match("/([0-9]{1,})/", $output, $matches);
        if (! isset($matches[1])) {
            return 0;
        }
        return (integer) $matches[1];
    }
private function parseCommits(ChurnProcess $process): int
    {
        $output = $process->getOutput();
        preg_match("/([0-9]{1,})/", $output, $matches);
        if (! isset($matches[1])) {
            return 0;
        }
        return (integer) $matches[1];
    }
private function parseCommits ( ChurnProcess $ process ) : int { $ output = $ process -> getOutput ( ) ; preg_match ( "/([0-9]{1,})/" , $ output , $ matches ) ; if ( ! isset ( $ matches [ 1 ] ) ) { return 0 ; } return ( integer ) $ matches [ 1 ] ; }
Parse the number of commits on the file from the raw process output.
@param ChurnProcess $process Git Commit Count Process.
@return integer
Parse the number of commits on the file from the raw process output .