Passed
Pull Request — main (#10)
by
unknown
12:08
created
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Utils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.