@@ -61,7 +61,7 @@ discard block |
||
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 |
||
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 |
||
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+'); |
@@ -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 | } |