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); |
||
23 | 4 | public function process(ServerRequestInterface $request, DelegateInterface $delegate): ResponseInterface |
|
24 | { |
||
25 | 4 | if ($this->isJsonRequest($request->getHeaderLine('Content-Type'))) { |
|
26 | 3 | $request = $request->withParsedBody($this->parseBody($request)); |
|
27 | } |
||
28 | 4 | return $delegate->process($request); |
|
29 | } |
||
30 | |||
51 |