@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace WyriHaximus\React\Http\Middleware; |
4 | 4 | |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * Via: https://github.com/reactphp/http/pull/220#discussion_r140863176. |
18 | 18 | */ |
19 | - $this->addType('application/json', function (ServerRequestInterface $request) { |
|
19 | + $this->addType('application/json', function(ServerRequestInterface $request) { |
|
20 | 20 | $result = json_decode((string)$request->getBody(), true); |
21 | 21 | if (!is_array($result)) { |
22 | 22 | return $request; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * Via: https://github.com/reactphp/http/pull/220#discussion_r140863176. |
30 | 30 | */ |
31 | - $xmlParser = function (ServerRequestInterface $request) { |
|
31 | + $xmlParser = function(ServerRequestInterface $request) { |
|
32 | 32 | $backup = libxml_disable_entity_loader(true); |
33 | 33 | $backup_errors = libxml_use_internal_errors(true); |
34 | 34 | $result = simplexml_load_string((string)$request->getBody()); |