@@ -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 | } |
@@ -19,4 +19,6 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * RateLimitExceededException. |
| 21 | 21 | */ |
| 22 | -final class RateLimitExceededException extends InvalidArgumentException {} |
|
| 22 | +final class RateLimitExceededException extends InvalidArgumentException |
|
| 23 | +{ |
|
| 24 | +} |
|
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | $invalidOptions = []; |
| 101 | 101 | |
| 102 | - array_filter($options, static function ($value, int|string $key) use (&$invalidOptions): bool { |
|
| 102 | + array_filter($options, static function($value, int | string $key) use (&$invalidOptions): bool { |
|
| 103 | 103 | if (!\in_array($key, self::ValidGuzzleOptions, true)) { |
| 104 | 104 | $invalidOptions[] = $key; |
| 105 | 105 | |