@@ -155,11 +155,17 @@ discard block |
||
| 155 | 155 | $output->writeln('Time: ' . round($duration, 3) . ' seconds, Memory: ' . round(memory_get_peak_usage() / 1024 / 1024, 3) . ' MB'); |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @return string |
|
| 160 | + */ |
|
| 158 | 161 | protected function findLatestTag(Repository $repository) |
| 159 | 162 | { |
| 160 | 163 | return $this->findTag($repository, '*'); |
| 161 | 164 | } |
| 162 | 165 | |
| 166 | + /** |
|
| 167 | + * @return string |
|
| 168 | + */ |
|
| 163 | 169 | protected function findTag(Repository $repository, $tag) |
| 164 | 170 | { |
| 165 | 171 | $tags = (array)$repository->getTags(); |
@@ -169,6 +175,9 @@ discard block |
||
| 169 | 175 | return $this->getMappedVersionTag($tags, $tagExpression->maxSatisfying($tags)); |
| 170 | 176 | } |
| 171 | 177 | |
| 178 | + /** |
|
| 179 | + * @param SemanticVersion|null $versionTag |
|
| 180 | + */ |
|
| 172 | 181 | private function getMappedVersionTag(array $tags, $versionTag) |
| 173 | 182 | { |
| 174 | 183 | foreach ($tags as $tag) { |