Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
43 | public function resolveUpcomingRelease(array $changelog, $branch = '') |
||
44 | { |
||
45 | foreach ($changelog as $version => $item) { |
||
46 | if ($this->constraintValidator->isConstraint($version)) { |
||
47 | break; |
||
48 | } |
||
49 | |||
50 | if (!$this->releaseAnalyser->isSameBranch($item, $branch)) { |
||
51 | continue; |
||
52 | } |
||
53 | |||
54 | return $version; |
||
55 | } |
||
56 | |||
57 | return false; |
||
58 | } |
||
60 |