Method | Description | |
---|---|---|
supports ( $sourceUrl ) |
Method | Description | |
---|---|---|
extractRepositoryInformation ( string $sourceUrl ) : array | Extracts information like user and repository from the http url. | |
generateBaseUrl ( string $sourceUrl ) : string | Generates the canonical http url for a repository. | |
getCompareVersion ( |
Get the version to use for the compare url. | |
getDomain ( ) : string | Returns the domain of the service, like "example.org". |
Method | Description | |
---|---|---|
isSshUrl ( string $url ) : string | Returns whether an url uses a ssh git protocol. | |
transformSshUrlIntoHttp ( string $url ) : string | Transform an ssh git url into an http one. |
protected extractRepositoryInformation ( string $sourceUrl ) : array | ||
$sourceUrl | string | |
return | array |
protected generateBaseUrl ( string $sourceUrl ) : string | ||
$sourceUrl | string | |
return | string |
protected getCompareVersion ( |
||
$version | ||
return | string |