Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | 3 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
18 | { |
||
19 | 3 | if (0 === stripos($req->getHeaderLine('Content-Type'), $this->type)) |
|
20 | { |
||
21 | 2 | $req = $req->withParsedBody($this->parse($req->getBody())); |
|
22 | } |
||
23 | |||
24 | 3 | return $handler->handle($req); |
|
25 | } |
||
26 | |||
35 | } |