From 3b3e96cd1725876788b5d48b4053b2d782554f74 Mon Sep 17 00:00:00 2001 From: faab007nl Date: Wed, 20 Apr 2022 12:42:28 +0000 Subject: [PATCH] Fix styling --- src/LaravelViper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/LaravelViper.php b/src/LaravelViper.php index 27cc96f..b6dfd35 100644 --- a/src/LaravelViper.php +++ b/src/LaravelViper.php @@ -227,11 +227,11 @@ private function makeRequest(string $method, string $uri, ?array $body = null, b } return match ($response->getStatusCode()) { - 400 => throw new RequestInvalidException, - 401 => throw new InvalidTokenException, - 403 => throw new InvalidApiKeyException, - 429 => throw new RateLimitException, - 500 => throw new ServerErrorException, + 400 => throw new RequestInvalidException(), + 401 => throw new InvalidTokenException(), + 403 => throw new InvalidApiKeyException(), + 429 => throw new RateLimitException(), + 500 => throw new ServerErrorException(), default => throw new InvalidResponseException() }; } catch (GuzzleException $e) {