| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 4 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
| 29 | {
|
||
| 30 | 4 | if (0 === stripos($req->getHeaderLine('Content-Type'), $this->type))
|
|
| 31 | {
|
||
| 32 | 3 | $req = $req->withParsedBody($this->parse($req->getBody())); |
|
| 33 | } |
||
| 34 | |||
| 35 | 3 | return $handler->handle($req); |
|
| 36 | } |
||
| 37 | |||
| 56 | } |