@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | */ |
396 | 396 | private function retryDecider(): Closure |
397 | 397 | { |
398 | - return function ( |
|
398 | + return function( |
|
399 | 399 | int $retries, |
400 | 400 | RequestInterface $request, |
401 | 401 | ?ResponseInterface $response = null, |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | */ |
428 | 428 | private function retryDelay(): Closure |
429 | 429 | { |
430 | - return static function (int $numberOfRetries, ResponseInterface $response): int { |
|
430 | + return static function(int $numberOfRetries, ResponseInterface $response): int { |
|
431 | 431 | if (!$response->hasHeader('Retry-After')) { |
432 | 432 | return RetryMiddleware::exponentialDelay($numberOfRetries); |
433 | 433 | } |
@@ -100,7 +100,7 @@ |
||
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 |