@@ -87,13 +87,13 @@ |
||
| 87 | 87 | $exceptionEvent = new ExceptionEvent($request, $exception); |
| 88 | 88 | $this->dispatcher->dispatch($this->exceptionEvent, $exceptionEvent); |
| 89 | 89 | |
| 90 | - if (! $exceptionEvent->hasResponse()) { |
|
| 90 | + if (!$exceptionEvent->hasResponse()) { |
|
| 91 | 91 | throw new RequestException($request, $exception); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | $response = $exceptionEvent->getResponse(); |
| 95 | 95 | |
| 96 | - if (! $exceptionEvent->isResponseEventEnabled()) { |
|
| 96 | + if (!$exceptionEvent->isResponseEventEnabled()) { |
|
| 97 | 97 | return $response; |
| 98 | 98 | } |
| 99 | 99 | } |
@@ -82,8 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | try { |
| 84 | 84 | $response = $this->client->request($requestEvent->getRequest()); |
| 85 | - } |
|
| 86 | - catch (\Throwable $exception) { |
|
| 85 | + } catch (\Throwable $exception) { |
|
| 87 | 86 | $exceptionEvent = new ExceptionEvent($request, $exception); |
| 88 | 87 | $this->dispatcher->dispatch($this->exceptionEvent, $exceptionEvent); |
| 89 | 88 | |