@@ -77,6 +77,7 @@ discard block |
||
| 77 | 77 | * Clean-up the Zip file. |
| 78 | 78 | * |
| 79 | 79 | * @param the zip file to remove |
| 80 | + * @param string $zipFile |
|
| 80 | 81 | * |
| 81 | 82 | * @return $this |
| 82 | 83 | */ |
@@ -92,8 +93,8 @@ discard block |
||
| 92 | 93 | /** |
| 93 | 94 | * Download the nukacode build files and display progress bar. |
| 94 | 95 | * |
| 95 | - * @param $buildUrl |
|
| 96 | - * @param $zipFile |
|
| 96 | + * @param string $buildUrl |
|
| 97 | + * @param string $zipFile |
|
| 97 | 98 | */ |
| 98 | 99 | protected function downloadFileWithProgressBar($buildUrl, $zipFile) |
| 99 | 100 | { |
@@ -104,12 +104,12 @@ |
||
| 104 | 104 | |
| 105 | 105 | $client = new Client(); |
| 106 | 106 | $request = $client->createRequest('GET', $buildUrl); |
| 107 | - $request->getEmitter()->on('progress', function (ProgressEvent $e) use ($progressBar) { |
|
| 107 | + $request->getEmitter()->on('progress', function(ProgressEvent $e) use ($progressBar) { |
|
| 108 | 108 | if ($e->downloaded > 0) { |
| 109 | 109 | $localProgress = floor(($e->downloaded / $e->downloadSize * 100)); |
| 110 | 110 | |
| 111 | 111 | if ($localProgress != $this->progress) { |
| 112 | - $this->progress = (integer)$localProgress; |
|
| 112 | + $this->progress = (integer) $localProgress; |
|
| 113 | 113 | $progressBar->advance(); |
| 114 | 114 | } |
| 115 | 115 | } |
@@ -247,7 +247,7 @@ |
||
| 247 | 247 | /** |
| 248 | 248 | * Download the nukacode build files and display progress bar. |
| 249 | 249 | * |
| 250 | - * @param $buildUrl |
|
| 250 | + * @param string $buildUrl |
|
| 251 | 251 | */ |
| 252 | 252 | protected function downloadFileWithProgressBar($buildUrl) |
| 253 | 253 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | $process = new Process(implode(' && ', $commands), $this->directory, null, null, null); |
| 160 | 160 | |
| 161 | - $process->run(function ($type, $line) { |
|
| 161 | + $process->run(function($type, $line) { |
|
| 162 | 162 | $this->output->write($line); |
| 163 | 163 | }); |
| 164 | 164 | |
@@ -258,12 +258,12 @@ discard block |
||
| 258 | 258 | |
| 259 | 259 | $client = new Client(); |
| 260 | 260 | $request = $client->createRequest('GET', $buildUrl); |
| 261 | - $request->getEmitter()->on('progress', function (ProgressEvent $e) use ($progressBar) { |
|
| 261 | + $request->getEmitter()->on('progress', function(ProgressEvent $e) use ($progressBar) { |
|
| 262 | 262 | if ($e->downloaded > 0) { |
| 263 | 263 | $localProgress = floor(($e->downloaded / $e->downloadSize * 100)); |
| 264 | 264 | |
| 265 | 265 | if ($localProgress != $this->progress) { |
| 266 | - $this->progress = (integer)$localProgress; |
|
| 266 | + $this->progress = (integer) $localProgress; |
|
| 267 | 267 | $progressBar->advance(); |
| 268 | 268 | } |
| 269 | 269 | } |