| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 18 | { |
||
| 19 | $json = $request->getBody()->getContents(); |
||
| 20 | $data = json_decode($json, true); |
||
| 21 | $request = $request->withParsedBody($data); |
||
| 22 | |||
| 23 | return $handler->handle($request); |
||
| 24 | } |
||
| 26 |