@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | protected function registerDefaultParsers(): void |
| 141 | 141 | { |
| 142 | - $this->registerParser('application/json', static function ($body) { |
|
| 142 | + $this->registerParser('application/json', static function($body) { |
|
| 143 | 143 | try { |
| 144 | 144 | return Json::decode($body, true); |
| 145 | 145 | } catch (InvalidArgumentException $ex) { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | }); |
| 149 | 149 | |
| 150 | - $this->registerParser('application/x-www-form-urlencoded', static function ($body) { |
|
| 150 | + $this->registerParser('application/x-www-form-urlencoded', static function($body) { |
|
| 151 | 151 | $data = []; |
| 152 | 152 | parse_str($body, $data); |
| 153 | 153 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param ServerRequestInterface $request |
| 161 | 161 | * @return null|array<mixed>|object |
| 162 | 162 | */ |
| 163 | - protected function parseBody(ServerRequestInterface $request): array|object|null |
|
| 163 | + protected function parseBody(ServerRequestInterface $request): array | object | null |
|
| 164 | 164 | { |
| 165 | 165 | $contentType = $this->getRequestContentType($request); |
| 166 | 166 | if ($contentType === null) { |