@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | $this->headers->set('Host', $this->uri->getHost()); |
203 | 203 | } |
204 | 204 | |
205 | - $this->registerMediaTypeParser('application/json', function ($input) { |
|
205 | + $this->registerMediaTypeParser('application/json', function($input) { |
|
206 | 206 | $result = json_decode($input, true); |
207 | 207 | if (!is_array($result)) { |
208 | 208 | return null; |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | return $result; |
211 | 211 | }); |
212 | 212 | |
213 | - $this->registerMediaTypeParser('application/xml', function ($input) { |
|
213 | + $this->registerMediaTypeParser('application/xml', function($input) { |
|
214 | 214 | $backup = libxml_disable_entity_loader(true); |
215 | 215 | $backup_errors = libxml_use_internal_errors(true); |
216 | 216 | $result = simplexml_load_string($input); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | return $result; |
224 | 224 | }); |
225 | 225 | |
226 | - $this->registerMediaTypeParser('text/xml', function ($input) { |
|
226 | + $this->registerMediaTypeParser('text/xml', function($input) { |
|
227 | 227 | $backup = libxml_disable_entity_loader(true); |
228 | 228 | $backup_errors = libxml_use_internal_errors(true); |
229 | 229 | $result = simplexml_load_string($input); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | return $result; |
237 | 237 | }); |
238 | 238 | |
239 | - $this->registerMediaTypeParser('application/x-www-form-urlencoded', function ($input) { |
|
239 | + $this->registerMediaTypeParser('application/x-www-form-urlencoded', function($input) { |
|
240 | 240 | parse_str($input, $data); |
241 | 241 | return $data; |
242 | 242 | }); |
@@ -1032,7 +1032,7 @@ discard block |
||
1032 | 1032 | // look for a media type with a structured syntax suffix (RFC 6839) |
1033 | 1033 | $parts = explode('+', $mediaType); |
1034 | 1034 | if (count($parts) >= 2) { |
1035 | - $mediaType = 'application/' . $parts[count($parts)-1]; |
|
1035 | + $mediaType = 'application/' . $parts[count($parts) - 1]; |
|
1036 | 1036 | } |
1037 | 1037 | |
1038 | 1038 | if (isset($this->bodyParsers[$mediaType]) === true) { |