@@ -285,8 +285,8 @@ discard block |
||
285 | 285 | } catch (GuzzleRequestException $e) { |
286 | 286 | |
287 | 287 | if ($e->getResponse() === null) { |
288 | - throw $e; |
|
289 | - } |
|
288 | + throw $e; |
|
289 | + } |
|
290 | 290 | |
291 | 291 | //If its an auth error convert to an auth exception |
292 | 292 | if ($e->getResponse()->getStatusCode() == 401) { |
@@ -304,8 +304,8 @@ discard block |
||
304 | 304 | private function getAuthHeader() |
305 | 305 | { |
306 | 306 | if ($this->accessToken === null) { |
307 | - throw new AuthenticationException(0, "Access token not set"); |
|
308 | - } |
|
307 | + throw new AuthenticationException(0, "Access token not set"); |
|
308 | + } |
|
309 | 309 | |
310 | 310 | return 'Bearer ' . $this->accessToken->getAccessToken(); |
311 | 311 | } |