@@ -15,11 +15,23 @@ |
||
15 | 15 | { |
16 | 16 | const STABILITY_STABLE = 1; |
17 | 17 | |
18 | + /** |
|
19 | + * @return string |
|
20 | + */ |
|
18 | 21 | public function getLatestVersion(); |
19 | 22 | |
23 | + /** |
|
24 | + * @return string |
|
25 | + */ |
|
20 | 26 | public function downloadLatestVersion(); |
21 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
22 | 31 | public function setStability($stability); |
23 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
24 | 36 | public function setPharFile($pharFileName); |
25 | 37 | } |
26 | 38 | \ No newline at end of file |
@@ -175,10 +175,12 @@ |
||
175 | 175 | |
176 | 176 | foreach ($jsonResponse['assets'] as $asset) |
177 | 177 | { |
178 | - if ($asset['name'] == $this->pharFile) //todo: add correct filter |
|
178 | + if ($asset['name'] == $this->pharFile) { |
|
179 | + //todo: add correct filter |
|
179 | 180 | { |
180 | 181 | return $asset['browser_download_url']; |
181 | 182 | } |
183 | + } |
|
182 | 184 | } |
183 | 185 | |
184 | 186 | return ''; |