| 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 | 2 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 23 | { |
||
| 24 | 2 | $body = $request->getParsedBody(); |
|
| 25 | 2 | if (! isset($body[ShortUrlMetaInputFilter::SHORT_CODE_LENGTH])) { |
|
| 26 | 1 | $body[ShortUrlMetaInputFilter::SHORT_CODE_LENGTH] = $this->defaultShortCodesLength; |
|
| 27 | } |
||
| 28 | |||
| 29 | 2 | return $handler->handle($request->withParsedBody($body)); |
|
| 30 | } |
||
| 32 |