Passed
Push — master ( 7a1811...e7b498 )
by Michael
02:30
created
src/HttpClient/HttpClient.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         foreach ($options as $option => $value)
63 63
         {
64
-            if (! in_array($option, static::$possibleOptions, true)) {
64
+            if (!in_array($option, static::$possibleOptions, true)) {
65 65
                 throw new InvalidOptionException($option, static::$possibleOptions);
66 66
             }
67 67
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $decoded = json_decode($content);
155 155
 
156 156
         if (json_last_error() !== JSON_ERROR_NONE) {
157
-            throw new \RuntimeException('Decoding error: "' . json_last_error_msg() . '""');
157
+            throw new \RuntimeException('Decoding error: "'.json_last_error_msg().'""');
158 158
         }
159 159
 
160 160
         return $this->hydrator->hydrate($decoded);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $encoded = json_encode($document->toArray());
172 172
 
173 173
         if (json_last_error() !== JSON_ERROR_NONE) {
174
-            throw new \RuntimeException('Encoding error: "' . json_last_error_msg() . '""');
174
+            throw new \RuntimeException('Encoding error: "'.json_last_error_msg().'""');
175 175
         }
176 176
 
177 177
         $stream = fopen('php://memory', 'r+');
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/HttpClient/Adapter/GuzzleAdapter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.