@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | static $availableMethods; |
67 | 67 | |
68 | - $availableMethods ??= ['HEAD', 'GET', 'DELETE', 'OPTIONS', 'PATCH', 'POST', 'PUT',]; |
|
68 | + $availableMethods ??= ['HEAD', 'GET', 'DELETE', 'OPTIONS', 'PATCH', 'POST', 'PUT', ]; |
|
69 | 69 | |
70 | 70 | // Check for a valid method |
71 | 71 | if (!in_array($method, $availableMethods, true)) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | $invalidOptions = []; |
124 | 124 | |
125 | - array_filter($options, static function ($value, int|string $key) use (&$invalidOptions, $validOptions): bool { |
|
125 | + array_filter($options, static function($value, int | string $key) use (&$invalidOptions, $validOptions): bool { |
|
126 | 126 | if (!in_array($key, $validOptions, true)) { |
127 | 127 | $invalidOptions[] = $key; |
128 | 128 |
@@ -10,7 +10,7 @@ |
||
10 | 10 | use Rector\Set\ValueObject\LevelSetList; |
11 | 11 | use Rector\Set\ValueObject\SetList; |
12 | 12 | |
13 | -return static function (RectorConfig $rectorConfig): void { |
|
13 | +return static function(RectorConfig $rectorConfig): void { |
|
14 | 14 | $rectorConfig->paths([ |
15 | 15 | __DIR__ . '/src', |
16 | 16 | __DIR__ . '/tests/src', |
@@ -28,7 +28,7 @@ |
||
28 | 28 | SetList::STRICT_BOOLEANS, |
29 | 29 | //SetList::PRIVATIZATION, |
30 | 30 | //SetList::EARLY_RETURN, |
31 | - SetList::INSTANCEOF, |
|
31 | + SetList::instanceof, |
|
32 | 32 | LevelSetList::UP_TO_PHP_82, |
33 | 33 | PHPUnitSetList::PHPUNIT_100, |
34 | 34 | PHPUnitSetList::PHPUNIT_CODE_QUALITY, |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $client->enableRetryAttempts(); |
231 | 231 | $client->setMaxRetryAttempts(1); |
232 | 232 | |
233 | - $client->build(['persistentHeaders' => ['Accept' => 'application/json'],]); |
|
233 | + $client->build(['persistentHeaders' => ['Accept' => 'application/json'], ]); |
|
234 | 234 | |
235 | 235 | $this->expectException(RateLimitExceededException::class); |
236 | 236 | $response = $client->send('GET', '429'); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $client->enableRetryAttempts(); |
249 | 249 | $client->setMaxRetryAttempts(1); |
250 | 250 | |
251 | - $client->build(['persistentHeaders' => ['Accept' => 'application/json'],]); |
|
251 | + $client->build(['persistentHeaders' => ['Accept' => 'application/json'], ]); |
|
252 | 252 | |
253 | 253 | $this->expectException(ServerException::class); |
254 | 254 | $response = $client->send('GET', '500'); |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $handlerStack->push(Middleware::retry($this->retryDecider(), $this->retryDelay())); |
306 | 306 | } |
307 | 307 | |
308 | - $defaultOptions += ['handler' => $handlerStack,]; |
|
308 | + $defaultOptions += ['handler' => $handlerStack, ]; |
|
309 | 309 | |
310 | 310 | // Attempt instantiating the client. Generally we should only run into issues if any options |
311 | 311 | // passed to Guzzle are incorrectly defined/configured. |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | */ |
415 | 415 | private function retryDecider(): Closure |
416 | 416 | { |
417 | - return function ( |
|
417 | + return function( |
|
418 | 418 | int $retries, |
419 | 419 | RequestInterface $request, |
420 | 420 | ?ResponseInterface $response = null, |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | */ |
447 | 447 | private function retryDelay(): Closure |
448 | 448 | { |
449 | - return static function (int $numberOfRetries, ResponseInterface $response): int { |
|
449 | + return static function(int $numberOfRetries, ResponseInterface $response): int { |
|
450 | 450 | if (!$response->hasHeader('Retry-After')) { |
451 | 451 | return RetryMiddleware::exponentialDelay($numberOfRetries); |
452 | 452 | } |