| 1 | <?php |
||
| 16 | abstract class GitBasedUrlGenerator implements UrlGenerator |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Generates the base url for a repository by removing the .git part. |
||
| 20 | * |
||
| 21 | * @param string $sourceUrl |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 25 | protected function generateBaseUrl($sourceUrl) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get the version to use for the compare url. |
||
| 40 | * |
||
| 41 | * For dev versions, it returns the commit short hash in full pretty version. |
||
| 42 | * |
||
| 43 | * @param Version $version |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 19 | protected function getCompareVersion(Version $version) |
|
| 58 | } |
||
| 59 |