|
@@ -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.