| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 2 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
| 31 | {
|
||
| 32 | 2 | $path = $req->getUri()->getPath(); |
|
| 33 | |||
| 34 | 2 | if (isset($this->paths[$path])) |
|
| 35 | {
|
||
| 36 | 1 | return ($this->paths[$path])->process($req, $handler); |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | return $handler->handle($req); |
|
| 40 | } |
||
| 41 | } |