| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 49 | { |
||
| 50 | if ($this->queue->valid()) { |
||
| 51 | 2 | $middleware = $this->queue->current(); |
|
| 52 | 2 | $this->queue->next(); |
|
| 53 | |||
| 54 | 2 | return $middleware->process($request, $this); |
|
| 55 | } |
||
| 56 | |||
| 57 | if ($this->fallback) { |
||
| 58 | 2 | return $this->fallback->handle($request); |
|
| 59 | } |
||
| 60 | |||
| 61 | 2 | return $this->queue->response(); |
|
| 62 | } |
||
| 64 |