Test Failed
Push — master ( c0c6a6...dee485 )
by Webysther
02:26
created
src/Circular.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
Please login to merge, or discard this patch.
src/Command/Base.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
             InputOption::VALUE_NONE,
37 37
             'Show information about disk usage, execution time and memory usage'
38 38
         )
39
-             ->addOption(
40
-                 'no-progress',
41
-                 null,
42
-                 InputOption::VALUE_NONE,
43
-                 'Don\'t show progress bar'
44
-             );
39
+                ->addOption(
40
+                    'no-progress',
41
+                    null,
42
+                    InputOption::VALUE_NONE,
43
+                    'Don\'t show progress bar'
44
+                );
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
Please login to merge, or discard this patch.
src/Command/Clean.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
     {
46 46
         parent::configure();
47 47
         $this->setName('clean')
48
-             ->setDescription($this->description)
49
-             ->addOption(
50
-                 'scrub',
51
-                 null,
52
-                 InputOption::VALUE_NONE,
53
-                 'Check all directories for old files, use only to check all disk'
54
-             );
48
+                ->setDescription($this->description)
49
+                ->addOption(
50
+                    'scrub',
51
+                    null,
52
+                    InputOption::VALUE_NONE,
53
+                    'Check all directories for old files, use only to check all disk'
54
+                );
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
Please login to merge, or discard this patch.
src/Command/Create.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      *
194 194
      * @return bool True if work, false otherside
195 195
      */
196
-    protected function switch()
196
+    protected function switch ()
197 197
     {
198 198
         $cachedir = getenv('PUBLIC_DIR').'/';
199 199
         $packages = $cachedir.'packages.json.gz';
@@ -245,14 +245,14 @@  discard block
 block discarded – undo
245 245
         $this->providers = [];
246 246
         $pool = new Pool($this->client, $generator, [
247 247
             'concurrency' => getenv('MAX_CONNECTIONS'),
248
-            'fulfilled' => function ($response, $name) {
248
+            'fulfilled' => function($response, $name) {
249 249
                 $json = (string) $response->getBody();
250 250
                 file_put_contents($name, $json);
251 251
                 $this->createLink($name);
252 252
                 $this->providers[$name] = json_decode(gzdecode($json));
253 253
                 $this->progressBarUpdate();
254 254
             },
255
-            'rejected' => function ($reason, $name) {
255
+            'rejected' => function($reason, $name) {
256 256
                 $this->errors[$name] = $reason;
257 257
                 $this->progressBarUpdate();
258 258
             },
@@ -399,14 +399,14 @@  discard block
 block discarded – undo
399 399
 
400 400
         $pool = new Pool($this->client, $generator, [
401 401
             'concurrency' => getenv('MAX_CONNECTIONS'),
402
-            'fulfilled' => function ($response, $name) {
402
+            'fulfilled' => function($response, $name) {
403 403
                 $gzip = (string) $response->getBody();
404 404
                 file_put_contents($name, $this->parseGzip($gzip));
405 405
                 $this->createLink($name);
406 406
                 $this->packages[] = dirname($name);
407 407
                 $this->progressBarUpdate();
408 408
             },
409
-            'rejected' => function ($reason, $name) {
409
+            'rejected' => function($reason, $name) {
410 410
                 $this->errors[$name] = $reason;
411 411
                 $this->progressBarUpdate();
412 412
             },
@@ -474,14 +474,14 @@  discard block
 block discarded – undo
474 474
 
475 475
             $pool = new Pool($this->client, $generator, [
476 476
                 'concurrency' => getenv('MAX_CONNECTIONS') * $this->circular->count(),
477
-                'fulfilled' => function ($response, $name) {
477
+                'fulfilled' => function($response, $name) {
478 478
                     $gzip = (string) $response->getBody();
479 479
                     file_put_contents($name, $this->parseGzip($gzip));
480 480
                     $this->createLink($name);
481 481
                     $this->packages[] = dirname($name);
482 482
                     $this->progressBarUpdate();
483 483
                 },
484
-                'rejected' => function ($reason, $name) {
484
+                'rejected' => function($reason, $name) {
485 485
                     $this->errors[$name] = $reason;
486 486
                     $this->progressBarUpdate();
487 487
                 },
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
Please login to merge, or discard this patch.