Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 3 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
23 | { |
||
24 | 3 | $body = $request->getParsedBody(); |
|
25 | 3 | if (! isset($body[ShortUrlMetaInputFilter::SHORT_CODE_LENGTH])) { |
|
26 | 2 | $body[ShortUrlMetaInputFilter::SHORT_CODE_LENGTH] = $this->defaultShortCodesLength; |
|
27 | } |
||
28 | |||
29 | 3 | return $handler->handle($request->withParsedBody($body)); |
|
30 | } |
||
32 |