Passed
Push — master ( 78234a...a33c53 )
by Michael
04:14
created
src/HttpClient/Decorator/SymfonyEventDispatcherDecorator.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.