| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 41 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 42 | { |
||
| 43 | if ($this->queue->isEmpty()) { |
||
| 44 | return $this->parent->handle($request); |
||
| 45 | } |
||
| 46 | |||
| 47 | $middleware = $this->queue->dequeue(); |
||
| 48 | |||
| 49 | return $middleware->process($request, $this); |
||
| 50 | } |
||
| 52 |