@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | unset($port); |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | - $this->registerMediaTypeParser('application/json', function ($input) { |
|
| 208 | + $this->registerMediaTypeParser('application/json', function($input) { |
|
| 209 | 209 | $result = json_decode($input, true); |
| 210 | 210 | if (!is_array($result)) { |
| 211 | 211 | return null; |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | return $result; |
| 214 | 214 | }); |
| 215 | 215 | |
| 216 | - $this->registerMediaTypeParser('application/xml', function ($input) { |
|
| 216 | + $this->registerMediaTypeParser('application/xml', function($input) { |
|
| 217 | 217 | $backup = libxml_disable_entity_loader(true); |
| 218 | 218 | $backup_errors = libxml_use_internal_errors(true); |
| 219 | 219 | $result = simplexml_load_string($input); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | return $result; |
| 227 | 227 | }); |
| 228 | 228 | |
| 229 | - $this->registerMediaTypeParser('text/xml', function ($input) { |
|
| 229 | + $this->registerMediaTypeParser('text/xml', function($input) { |
|
| 230 | 230 | $backup = libxml_disable_entity_loader(true); |
| 231 | 231 | $backup_errors = libxml_use_internal_errors(true); |
| 232 | 232 | $result = simplexml_load_string($input); |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | return $result; |
| 240 | 240 | }); |
| 241 | 241 | |
| 242 | - $this->registerMediaTypeParser('application/x-www-form-urlencoded', function ($input) { |
|
| 242 | + $this->registerMediaTypeParser('application/x-www-form-urlencoded', function($input) { |
|
| 243 | 243 | parse_str($input, $data); |
| 244 | 244 | return $data; |
| 245 | 245 | }); |
@@ -1035,7 +1035,7 @@ discard block |
||
| 1035 | 1035 | // look for a media type with a structured syntax suffix (RFC 6839) |
| 1036 | 1036 | $parts = explode('+', $mediaType); |
| 1037 | 1037 | if (count($parts) >= 2) { |
| 1038 | - $mediaType = 'application/' . $parts[count($parts)-1]; |
|
| 1038 | + $mediaType = 'application/' . $parts[count($parts) - 1]; |
|
| 1039 | 1039 | } |
| 1040 | 1040 | |
| 1041 | 1041 | if (isset($this->bodyParsers[$mediaType]) === true) { |