private function createGitAuthorExtractor($scope, Config $config, $error, $cache, GitRepository $git)
    {
        if ($scope === 'project') {
            return new GitProjectAuthorExtractor($config, $error, $cache);
        } else {
            $extractor = new GitAuthorExtractor($config, $error, $cache);

            $extractor->collectFilesWithCommits($git);

            return $extractor;
        }
    }
private function createGitAuthorExtractor($scope, Config $config, $error, $cache, GitRepository $git)
    {
        if ($scope === 'project') {
            return new GitProjectAuthorExtractor($config, $error, $cache);
        } else {
            $extractor = new GitAuthorExtractor($config, $error, $cache);

            $extractor->collectFilesWithCommits($git);

            return $extractor;
        }
    }
private function createGitAuthorExtractor ( $ scope , Config $ config , $ error , $ cache , GitRepository $ git ) { if ( $ scope === 'project' ) { return new GitProjectAuthorExtractor ( $ config , $ error , $ cache ) ; } else { $ extractor = new GitAuthorExtractor ( $ config , $ error , $ cache ) ; $ extractor -> collectFilesWithCommits ( $ git ) ; return $ extractor ; } }
Create git author extractor for demanded scope.

@param string          $scope  Git author scope.
@param Config          $config Author extractor config.
@param OutputInterface $error  Error output.
@param CacheInterface  $cache  The cache.
@param GitRepository   $git    The git repository.

@return GitAuthorExtractor|GitProjectAuthorExtractor
Create git author extractor for demanded scope .