@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | -chdir(__DIR__ . '/../'); |
|
| 2 | +chdir(__DIR__.'/../'); |
|
| 3 | 3 | $fallbackUrl = 'https://github.com/box-project/box2/releases/download/2.6.0/box-2.6.0.phar'; |
| 4 | 4 | |
| 5 | -if (! isset($argv[1]) || ! is_file($argv[1])) { |
|
| 5 | +if (!isset($argv[1]) || !is_file($argv[1])) { |
|
| 6 | 6 | return $fallbackUrl; |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | $manifestJson = file_get_contents($argv[1]); |
| 10 | 10 | $files = json_decode($manifestJson, true); |
| 11 | 11 | |
| 12 | -if (! is_array($files)) { |
|
| 12 | +if (!is_array($files)) { |
|
| 13 | 13 | echo $fallbackUrl; |
| 14 | 14 | exit(0); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | foreach ($files as $file) { |
| 18 | - if (! is_array($file) || ! isset($file['version'])) { |
|
| 18 | + if (!is_array($file) || !isset($file['version'])) { |
|
| 19 | 19 | continue; |
| 20 | 20 | } |
| 21 | 21 | |