@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -145,13 +145,13 @@ discard block |
||
145 | 145 | $this->connections = $this->maxConnections * $mirrors; |
146 | 146 | } |
147 | 147 | |
148 | - $fulfilled = function ($response, $path) use ($success, $complete) { |
|
148 | + $fulfilled = function($response, $path) use ($success, $complete) { |
|
149 | 149 | $body = (string) $response->getBody(); |
150 | 150 | $success($body, $path); |
151 | 151 | $complete(); |
152 | 152 | }; |
153 | 153 | |
154 | - $rejected = function ($reason, $path) use ($complete) { |
|
154 | + $rejected = function($reason, $path) use ($complete) { |
|
155 | 155 | $this->poolErrors[$path] = $reason; |
156 | 156 | $complete(); |
157 | 157 | }; |
@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @return Create |
173 | 173 | */ |
174 | - protected function switch():Create |
|
174 | + protected function switch ():Create |
|
175 | 175 | { |
176 | 176 | // If .packages.json dont exists |
177 | 177 | if (!$this->filesystem->has(self::DOT)) { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | $this->progressBar->start(count($this->providerIncludes)); |
202 | 202 | |
203 | - $success = function ($body, $path) { |
|
203 | + $success = function($body, $path) { |
|
204 | 204 | $this->filesystem->write($path, $body); |
205 | 205 | }; |
206 | 206 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | protected function getClosureComplete():Closure |
224 | 224 | { |
225 | - return function () { |
|
225 | + return function() { |
|
226 | 226 | $this->progressBar->progress(); |
227 | 227 | }; |
228 | 228 | } |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | $this->http->pool( |
429 | 429 | $generator, |
430 | 430 | // Success |
431 | - function ($body, $path) { |
|
431 | + function($body, $path) { |
|
432 | 432 | $this->filesystem->write($path, $body); |
433 | 433 | $this->package->setDownloaded($path); |
434 | 434 | }, |
@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $path = $this->normalize($path); |
104 | 104 | $file = $this->filesystem->read($path); |
105 | 105 | |
106 | - if($file === false){ |
|
106 | + if ($file === false) { |
|
107 | 107 | return ''; |
108 | 108 | } |
109 | 109 |