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