@@ -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 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * Via: https://github.com/reactphp/http/pull/220#discussion_r140863176. |
| 19 | 19 | */ |
| 20 | - $this->addType('application/json', function (ServerRequestInterface $request) { |
|
| 20 | + $this->addType('application/json', function(ServerRequestInterface $request) { |
|
| 21 | 21 | $body = (string)$request->getBody(); |
| 22 | 22 | $result = json_decode($body, true); |
| 23 | 23 | if (!is_array($result)) { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Via: https://github.com/reactphp/http/pull/220#discussion_r140863176. |
| 32 | 32 | */ |
| 33 | - $xmlParser = function (ServerRequestInterface $request) { |
|
| 33 | + $xmlParser = function(ServerRequestInterface $request) { |
|
| 34 | 34 | $body = (string)$request->getBody(); |
| 35 | 35 | $backup = libxml_disable_entity_loader(true); |
| 36 | 36 | $backup_errors = libxml_use_internal_errors(true); |