@@ 115-128 (lines=14) @@ | ||
112 | return $this->development($version); |
|
113 | } |
|
114 | ||
115 | private function selectRecentStable() |
|
116 | { |
|
117 | $candidates = array(); |
|
118 | foreach ($this->versions as $version) { |
|
119 | if (!$this->stable($version)) { |
|
120 | continue; |
|
121 | } |
|
122 | $candidates[] = $version; |
|
123 | } |
|
124 | if (empty($candidates)) { |
|
125 | return false; |
|
126 | } |
|
127 | return $this->findMostRecent($candidates); |
|
128 | } |
|
129 | ||
130 | private function selectRecentUnstable() |
|
131 | { |
|
@@ 130-143 (lines=14) @@ | ||
127 | return $this->findMostRecent($candidates); |
|
128 | } |
|
129 | ||
130 | private function selectRecentUnstable() |
|
131 | { |
|
132 | $candidates = array(); |
|
133 | foreach ($this->versions as $version) { |
|
134 | if ($this->stable($version) || $this->development($version)) { |
|
135 | continue; |
|
136 | } |
|
137 | $candidates[] = $version; |
|
138 | } |
|
139 | if (empty($candidates)) { |
|
140 | return false; |
|
141 | } |
|
142 | return $this->findMostRecent($candidates); |
|
143 | } |
|
144 | ||
145 | private function selectRecentAll() |
|
146 | { |
|
@@ 145-158 (lines=14) @@ | ||
142 | return $this->findMostRecent($candidates); |
|
143 | } |
|
144 | ||
145 | private function selectRecentAll() |
|
146 | { |
|
147 | $candidates = array(); |
|
148 | foreach ($this->versions as $version) { |
|
149 | if ($this->development($version)) { |
|
150 | continue; |
|
151 | } |
|
152 | $candidates[] = $version; |
|
153 | } |
|
154 | if (empty($candidates)) { |
|
155 | return false; |
|
156 | } |
|
157 | return $this->findMostRecent($candidates); |
|
158 | } |
|
159 | ||
160 | private function findMostRecent(array $candidates) |
|
161 | { |