protected static function getUrlResource(
        $scheme,
        array $repoConfig,
        $identifier,
        $owner,
        $repository,
        VcsDriverInterface $driver
    ) {
        if (false === strpos(\get_class($driver), 'Git')) {
            return $scheme.'://bitbucket.org/'.$owner.'/'.$repository.'/raw/'.$identifier.'/'.$repoConfig['filename'];
        }

        return $scheme.'://api.bitbucket.org/1.0/repositories/'.$owner.'/'.$repository.'/src/'.$identifier.'/'.$repoConfig['filename'];
    }
protected static function getUrlResource(
        $scheme,
        array $repoConfig,
        $identifier,
        $owner,
        $repository,
        VcsDriverInterface $driver
    ) {
        if (false === strpos(\get_class($driver), 'Git')) {
            return $scheme.'://bitbucket.org/'.$owner.'/'.$repository.'/raw/'.$identifier.'/'.$repoConfig['filename'];
        }

        return $scheme.'://api.bitbucket.org/1.0/repositories/'.$owner.'/'.$repository.'/src/'.$identifier.'/'.$repoConfig['filename'];
    }
protected static function getUrlResource ( $ scheme , array $ repoConfig , $ identifier , $ owner , $ repository , VcsDriverInterface $ driver ) { if ( false === strpos ( \ get_class ( $ driver ) , 'Git' ) ) { return $ scheme . '://bitbucket.org/' . $ owner . '/' . $ repository . '/raw/' . $ identifier . '/' . $ repoConfig [ 'filename' ] ; } return $ scheme . '://api.bitbucket.org/1.0/repositories/' . $ owner . '/' . $ repository . '/src/' . $ identifier . '/' . $ repoConfig [ 'filename' ] ; }
Get the url of resource.

@param string             $scheme     The scheme
@param array              $repoConfig The repository config
@param string             $identifier The identifier
@param string             $owner      The owner of repository
@param string             $repository The repository name
@param VcsDriverInterface $driver     The vcs driver

@return string
Get the url of resource .