Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
faab007nl authored and github-actions[bot] committed Apr 20, 2022
1 parent 99fd339 commit 3b3e96c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LaravelViper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b3e96c

Please sign in to comment.