Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | 4 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
28 | { |
||
29 | 4 | $data = Parser::getRequestBody($request); |
|
30 | 4 | if (isset($data[$this->idName])) { |
|
31 | 4 | unset($data[$this->idName]); |
|
32 | } |
||
33 | |||
34 | 4 | return $handler->handle($request->withParsedBody($data)); |
|
35 | } |
||
36 | } |
||
37 |