@@ -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. |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $this->slaves = $slaves; |
51 | 51 | |
52 | 52 | $this->data = $slaves; |
53 | - if(!in_array($master, $this->data)){ |
|
53 | + if (!in_array($master, $this->data)) { |
|
54 | 54 | $this->data[] = $master; |
55 | 55 | } |
56 | 56 |