Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
24 | 3 | public function process(ServerRequestInterface $request, DelegateInterface $delegate): ResponseInterface |
|
25 | { |
||
26 | 3 | if (in_array($request->getHeaderLine('Content-Type'), $this->jsonContentTypes, true)) { |
|
27 | 2 | $request = $request->withParsedBody($this->parseBody($request)); |
|
28 | } |
||
29 | 3 | return $delegate->process($request); |
|
30 | } |
||
31 | |||
41 | } |