Completed
Push — master ( cae28e...792bef )
by Webysther
01:54
created
src/Command/Create.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $this->filesystem->move(self::DOT);
108 108
 
109 109
         // Clean
110
-        if(!$this->input->getOption('no-clean')){
110
+        if (!$this->input->getOption('no-clean')) {
111 111
             $this->setExitCode($this->clean->execute($input, $output));
112 112
         }
113 113
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $from = getcwd().'/resources/public/';
205 205
         foreach (new \DirectoryIterator($from) as $fileInfo) {
206
-            if($fileInfo->isDot()) continue;
206
+            if ($fileInfo->isDot()) continue;
207 207
             $file = $fileInfo->getFilename();
208 208
             $to = $this->filesystem->getFullPath($file);
209 209
             copy($from.$file, $to);
@@ -241,14 +241,14 @@  discard block
 block discarded – undo
241 241
 
242 242
         $this->progressBar->start(count($this->providerIncludes));
243 243
 
244
-        $success = function ($body, $path) {
244
+        $success = function($body, $path) {
245 245
             $this->provider->setDownloaded($path);
246 246
             $this->filesystem->write($path, $body);
247 247
         };
248 248
 
249 249
         $this->http->pool($generator, $success, $this->getClosureComplete());
250 250
         $this->progressBar->end();
251
-        if(!$this->progressBar->isDisabled()){
251
+        if (!$this->progressBar->isDisabled()) {
252 252
             $this->output->write(PHP_EOL);
253 253
         }
254 254
         $this->showErrors();
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
             ];
292 292
         }
293 293
 
294
-        if(!count($rows)){
294
+        if (!count($rows)) {
295 295
             return $this;
296 296
         }
297 297
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         $mirrors = $this->http->getMirror()->toArray();
312 312
 
313 313
         foreach ($mirrors as $mirror) {
314
-            if(empty($mirror)){
314
+            if (empty($mirror)) {
315 315
                 continue;
316 316
             }
317 317
             
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             $base = $uri['scheme'].'://'.$uri['host'];
320 320
             $total = $this->http->getTotalErrorByMirror($base);
321 321
 
322
-            if(!isset($this->latestErrorsShowed[$base])){
322
+            if (!isset($this->latestErrorsShowed[$base])) {
323 323
                 $this->latestErrorsShowed[$base] = 0;
324 324
             }
325 325
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                 if ($this->isVeryVerbose() && $total > 1) {
330 330
                     //print_r($this->latestErrorsShowed);
331 331
                     //print($base.PHP_EOL);
332
-                    if($this->latestErrorsShowed[$base] == $total){
332
+                    if ($this->latestErrorsShowed[$base] == $total) {
333 333
                         continue;
334 334
                     }
335 335
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             $this->progressBar->start(count($this->providerPackages));
385 385
             $this->poolPackages($generator);
386 386
             $this->progressBar->end();
387
-            if(!$this->progressBar->isDisabled()){
387
+            if (!$this->progressBar->isDisabled()) {
388 388
                 $this->output->write(PHP_EOL);
389 389
             }
390 390
             $this->showErrors()->disableDueErrors()->fallback();
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         $this->http->pool(
404 404
             $generator,
405 405
             // Success
406
-            function ($body, $path) {
406
+            function($body, $path) {
407 407
                 $this->filesystem->write($path, $body);
408 408
                 $this->package->setDownloaded($path);
409 409
             },
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
      */
420 420
     protected function getClosureComplete():Closure
421 421
     {
422
-        return function () {
422
+        return function() {
423 423
             $this->progressBar->progress();
424 424
         };
425 425
     }
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
         $this->progressBar->start($total);
450 450
         $this->poolPackages($generator);
451 451
         $this->progressBar->end();
452
-        if(!$this->progressBar->isDisabled()){
452
+        if (!$this->progressBar->isDisabled()) {
453 453
             $this->output->write(PHP_EOL);
454 454
         }
455 455
         $this->showErrors();
Please login to merge, or discard this patch.
src/Mirror.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $this->data = [];
52 52
 
53 53
         foreach ($slaves as $value) {
54
-            if(empty($value) || !filter_var($value, FILTER_VALIDATE_URL)){
54
+            if (empty($value) || !filter_var($value, FILTER_VALIDATE_URL)) {
55 55
                 continue;
56 56
             }
57 57
 
Please login to merge, or discard this patch.
src/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,13 +156,13 @@
 block discarded – undo
156 156
             $this->connections = $this->maxConnections * $mirrors;
157 157
         }
158 158
 
159
-        $fulfilled = function ($response, $path) use ($success, $complete) {
159
+        $fulfilled = function($response, $path) use ($success, $complete) {
160 160
             $body = (string) $response->getBody();
161 161
             $success($body, $path);
162 162
             $complete();
163 163
         };
164 164
 
165
-        $rejected = function ($reason, $path) use ($complete) {
165
+        $rejected = function($reason, $path) use ($complete) {
166 166
             $uri = $reason->getRequest()->getUri();
167 167
             $host = $uri->getScheme().'://'.$uri->getHost();
168 168
             $uri = (string) $uri;
Please login to merge, or discard this patch.