Skip to content

Commit 1f9e89f

Browse files
authored
Improve lead dto (#59)
* feat: Improved LeadAttributionDTO * fix: Fix AuthenticationMiddleware according to cs-fix
1 parent 75e6aa2 commit 1f9e89f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Client/AuthenticationMiddleware.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ public static function create(TokenResolver $tokenResolver, string $clientId, st
4343
public static function retry(): callable
4444
{
4545
return Middleware::retry(
46-
function (int $retries, RequestInterface $request, ?ResponseInterface $response, ?Throwable $exception) {
47-
return $retries <= 2 &&
48-
$exception instanceof RequestException &&
49-
$exception->hasResponse() &&
50-
$exception->getResponse()->getStatusCode() === Response::HTTP_UNAUTHORIZED;
51-
},
46+
fn (int $retries, RequestInterface $request, ?ResponseInterface $response, ?Throwable $exception) => $retries <= 2 &&
47+
$exception instanceof RequestException &&
48+
$exception->hasResponse() &&
49+
$exception->getResponse()->getStatusCode() === Response::HTTP_UNAUTHORIZED,
5250
fn () => 500
5351
);
5452
}

0 commit comments

Comments
 (0)