@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $this->filesystem->move(self::DOT); |
103 | 103 | |
104 | 104 | // Clean |
105 | - if(!$this->input->getOption('no-clean')){ |
|
105 | + if (!$this->input->getOption('no-clean')) { |
|
106 | 106 | $this->setExitCode($this->clean->execute($input, $output)); |
107 | 107 | } |
108 | 108 | |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | { |
199 | 199 | $from = getcwd().'/resources/public/'; |
200 | 200 | foreach (new \DirectoryIterator($from) as $fileInfo) { |
201 | - if($fileInfo->isDot()) continue; |
|
201 | + if ($fileInfo->isDot()) continue; |
|
202 | 202 | $file = $fileInfo->getFilename(); |
203 | 203 | $to = $this->filesystem->getFullPath($file); |
204 | 204 | copy($from.$file, $to); |
@@ -236,14 +236,14 @@ discard block |
||
236 | 236 | |
237 | 237 | $this->progressBar->start(count($this->providerIncludes)); |
238 | 238 | |
239 | - $success = function ($body, $path) { |
|
239 | + $success = function($body, $path) { |
|
240 | 240 | $this->provider->setDownloaded($path); |
241 | 241 | $this->filesystem->write($path, $body); |
242 | 242 | }; |
243 | 243 | |
244 | 244 | $this->http->pool($generator, $success, $this->getClosureComplete()); |
245 | 245 | $this->progressBar->end(); |
246 | - if(!$this->progressBar->isDisabled()){ |
|
246 | + if (!$this->progressBar->isDisabled()) { |
|
247 | 247 | $this->output->write(PHP_EOL); |
248 | 248 | } |
249 | 249 | $this->showErrors(); |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | ]; |
287 | 287 | } |
288 | 288 | |
289 | - if(!count($rows)){ |
|
289 | + if (!count($rows)) { |
|
290 | 290 | return $this; |
291 | 291 | } |
292 | 292 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | $mirrors = $this->http->getMirror()->toArray(); |
307 | 307 | |
308 | 308 | foreach ($mirrors as $mirror) { |
309 | - if(empty($mirror)){ |
|
309 | + if (empty($mirror)) { |
|
310 | 310 | continue; |
311 | 311 | } |
312 | 312 | |
@@ -314,13 +314,13 @@ discard block |
||
314 | 314 | $base = $uri['scheme'].'://'.$uri['host']; |
315 | 315 | $total = $this->http->getTotalErrorByMirror($base); |
316 | 316 | |
317 | - if(!isset($this->latestErrorsShowed[$base])){ |
|
317 | + if (!isset($this->latestErrorsShowed[$base])) { |
|
318 | 318 | $this->latestErrorsShowed[$base] = 0; |
319 | 319 | } |
320 | 320 | |
321 | 321 | if ($total < 100) { |
322 | 322 | if ($this->isDebug() && $total > 1) { |
323 | - if($this->latestErrorsShowed[$base] == $total){ |
|
323 | + if ($this->latestErrorsShowed[$base] == $total) { |
|
324 | 324 | continue; |
325 | 325 | } |
326 | 326 | |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | $this->progressBar->start(count($this->providerPackages)); |
376 | 376 | $this->poolPackages($generator); |
377 | 377 | $this->progressBar->end(); |
378 | - if(!$this->progressBar->isDisabled()){ |
|
378 | + if (!$this->progressBar->isDisabled()) { |
|
379 | 379 | $this->output->write(PHP_EOL); |
380 | 380 | } |
381 | 381 | $this->showErrors()->disableDueErrors()->fallback(); |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | $this->http->pool( |
395 | 395 | $generator, |
396 | 396 | // Success |
397 | - function ($body, $path) { |
|
397 | + function($body, $path) { |
|
398 | 398 | $this->filesystem->write($path, $body); |
399 | 399 | $this->package->setDownloaded($path); |
400 | 400 | }, |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | */ |
411 | 411 | protected function getClosureComplete():Closure |
412 | 412 | { |
413 | - return function () { |
|
413 | + return function() { |
|
414 | 414 | $this->progressBar->progress(); |
415 | 415 | }; |
416 | 416 | } |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | $this->progressBar->start($total); |
441 | 441 | $this->poolPackages($generator); |
442 | 442 | $this->progressBar->end(); |
443 | - if(!$this->progressBar->isDisabled()){ |
|
443 | + if (!$this->progressBar->isDisabled()) { |
|
444 | 444 | $this->output->write(PHP_EOL); |
445 | 445 | } |
446 | 446 | $this->showErrors(); |