Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
26 | public function resolveLatestVersionedRelease(array $changelog, $branch = '') |
||
27 | { |
||
28 | foreach ($changelog as $version => $item) { |
||
29 | if (!$this->constraintValidator->isConstraint($version)) { |
||
30 | continue; |
||
31 | } |
||
32 | |||
33 | if (!$this->releaseAnalyser->isSameBranch($item, $branch)) { |
||
34 | continue; |
||
35 | } |
||
36 | |||
37 | return $version; |
||
38 | } |
||
39 | |||
40 | return false; |
||
41 | } |
||
60 |