@@ -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. |
@@ -150,13 +150,13 @@ discard block |
||
150 | 150 | $this->connections = $this->maxConnections * $mirrors; |
151 | 151 | } |
152 | 152 | |
153 | - $fulfilled = function ($response, $path) use ($success, $complete) { |
|
153 | + $fulfilled = function($response, $path) use ($success, $complete) { |
|
154 | 154 | $body = (string) $response->getBody(); |
155 | 155 | $success($body, $path); |
156 | 156 | $complete(); |
157 | 157 | }; |
158 | 158 | |
159 | - $rejected = function ($reason, $path) use ($complete) { |
|
159 | + $rejected = function($reason, $path) use ($complete) { |
|
160 | 160 | $uri = $reason->getRequest()->getUri(); |
161 | 161 | $host = $uri->getScheme().'://'.$uri->getHost(); |
162 | 162 |
@@ -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. |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | |
182 | 182 | $this->progressBar->start(count($this->providerIncludes)); |
183 | 183 | |
184 | - $success = function ($body, $path) { |
|
184 | + $success = function($body, $path) { |
|
185 | 185 | $this->provider->setDownloaded($path); |
186 | 186 | $this->filesystem->write($path, $body); |
187 | 187 | }; |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | $this->http->pool( |
309 | 309 | $generator, |
310 | 310 | // Success |
311 | - function ($body, $path) { |
|
311 | + function($body, $path) { |
|
312 | 312 | $this->filesystem->write($path, $body); |
313 | 313 | $this->package->setDownloaded($path); |
314 | 314 | }, |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | */ |
325 | 325 | protected function getClosureComplete():Closure |
326 | 326 | { |
327 | - return function () { |
|
327 | + return function() { |
|
328 | 328 | $this->progressBar->progress(); |
329 | 329 | }; |
330 | 330 | } |
@@ -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. |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $this->delete($target); |
235 | 235 | } |
236 | 236 | |
237 | - retry(8, function () use ($from, $target) { |
|
237 | + retry(8, function() use ($from, $target) { |
|
238 | 238 | $this->filesystem->rename($this->getGzName($from), $target); |
239 | 239 | }, 250); |
240 | 240 |