@@ -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 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package: marx/php-self-updater |
|
4 | - * |
|
5 | - * @author: msiebeneicher |
|
6 | - * @since: 2015-12-27 |
|
7 | - * |
|
8 | - */ |
|
3 | + * @package: marx/php-self-updater |
|
4 | + * |
|
5 | + * @author: msiebeneicher |
|
6 | + * @since: 2015-12-27 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | |
11 | 11 | namespace PSU\Strategy; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package: marx/php-self-updater |
|
4 | - * |
|
5 | - * @author: msiebeneicher |
|
6 | - * @since: 2015-12-27 |
|
7 | - * |
|
8 | - */ |
|
3 | + * @package: marx/php-self-updater |
|
4 | + * |
|
5 | + * @author: msiebeneicher |
|
6 | + * @since: 2015-12-27 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace PSU\HttpClient\Adapter; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package: marx/php-self-updater |
|
4 | - * |
|
5 | - * @author: msiebeneicher |
|
6 | - * @since: 2015-12-27 |
|
7 | - * |
|
8 | - */ |
|
3 | + * @package: marx/php-self-updater |
|
4 | + * |
|
5 | + * @author: msiebeneicher |
|
6 | + * @since: 2015-12-27 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | |
11 | 11 | namespace PSU\HttpClient; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package: marx/php-self-updater |
|
4 | - * |
|
5 | - * @author: msiebeneicher |
|
6 | - * @since: 2015-12-27 |
|
7 | - * |
|
8 | - */ |
|
3 | + * @package: marx/php-self-updater |
|
4 | + * |
|
5 | + * @author: msiebeneicher |
|
6 | + * @since: 2015-12-27 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | |
11 | 11 | namespace PSU\HttpClient; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package: marx/php-self-updater |
|
4 | - * |
|
5 | - * @author: msiebeneicher |
|
6 | - * @since: 2015-12-27 |
|
7 | - * |
|
8 | - */ |
|
3 | + * @package: marx/php-self-updater |
|
4 | + * |
|
5 | + * @author: msiebeneicher |
|
6 | + * @since: 2015-12-27 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace PSU\Strategy; |
11 | 11 |
@@ -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 ''; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package: marx/php-self-updater |
|
4 | - * |
|
5 | - * @author: msiebeneicher |
|
6 | - * @since: 2015-12-27 |
|
7 | - * |
|
8 | - */ |
|
3 | + * @package: marx/php-self-updater |
|
4 | + * |
|
5 | + * @author: msiebeneicher |
|
6 | + * @since: 2015-12-27 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace PSU; |
11 | 11 |