@@ -81,8 +81,7 @@ |
||
| 81 | 81 | |
| 82 | 82 | try { |
| 83 | 83 | $response = $this->client->request($request); |
| 84 | - } |
|
| 85 | - catch (\Throwable $exception) { |
|
| 84 | + } catch (\Throwable $exception) { |
|
| 86 | 85 | $exceptionEvent = new ExceptionEvent($request, $exception); |
| 87 | 86 | $this->dispatcher->dispatch($this->exceptionEvent, $exceptionEvent); |
| 88 | 87 | |
@@ -88,8 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | try { |
| 90 | 90 | $response = $this->client->request($request); |
| 91 | - } |
|
| 92 | - catch (ResponseException $exception) { |
|
| 91 | + } catch (ResponseException $exception) { |
|
| 93 | 92 | if ($this->returnBadResponse) { |
| 94 | 93 | $response = $exception->getResponse(); |
| 95 | 94 | return $this->handleResponse($response); |
@@ -41,8 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | try { |
| 43 | 43 | return $this->client->send($request); |
| 44 | - } |
|
| 45 | - catch (GuzzleRequestException $exception) { |
|
| 44 | + } catch (GuzzleRequestException $exception) { |
|
| 46 | 45 | throw $this->createException($exception); |
| 47 | 46 | } |
| 48 | 47 | } |