private function countMergeCommits(array $commitList)
    {
        $count = 0;
        foreach ($commitList as $filePathCommit) {
            if (!$this->isMergeCommit($filePathCommit)) {
                continue;
            }

            $count++;
        }

        return $count;
    }
private function countMergeCommits(array $commitList)
    {
        $count = 0;
        foreach ($commitList as $filePathCommit) {
            if (!$this->isMergeCommit($filePathCommit)) {
                continue;
            }

            $count++;
        }

        return $count;
    }
private function countMergeCommits ( array $ commitList ) { $ count = 0 ; foreach ( $ commitList as $ filePathCommit ) { if ( ! $ this -> isMergeCommit ( $ filePathCommit ) ) { continue ; } $ count ++ ; } return $ count ; }
Count merge commits from the commit list.

@param array $commitList The list of commits.

@return int
Count merge commits from the commit list .