@@ -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 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | static $availableMethods; |
| 45 | 45 | |
| 46 | - $availableMethods ??= ['HEAD', 'GET', 'DELETE', 'OPTIONS', 'PATCH', 'POST', 'PUT',]; |
|
| 46 | + $availableMethods ??= ['HEAD', 'GET', 'DELETE', 'OPTIONS', 'PATCH', 'POST', 'PUT', ]; |
|
| 47 | 47 | |
| 48 | 48 | // Check for a valid method |
| 49 | 49 | if (!\in_array($method, $availableMethods, true)) { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | $invalidOptions = []; |
| 102 | 102 | |
| 103 | - array_filter($options, static function ($value, int|string $key) use (&$invalidOptions, $validOptions): bool { |
|
| 103 | + array_filter($options, static function($value, int | string $key) use (&$invalidOptions, $validOptions): bool { |
|
| 104 | 104 | if (!\in_array($key, $validOptions, true)) { |
| 105 | 105 | $invalidOptions[] = $key; |
| 106 | 106 | |