| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 42 | 4 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 43 | { |
||
| 44 | 4 | if ($this->queue->isEmpty()) { |
|
| 45 | 3 | return $this->parent->handle($request); |
|
| 46 | } |
||
| 47 | |||
| 48 | /** @var MiddlewareInterface $middleware */ |
||
| 49 | 1 | $middleware = $this->queue->dequeue(); |
|
| 50 | |||
| 51 | 1 | return $middleware->process($request, $this); |
|
| 52 | } |
||
| 53 | } |
||
| 54 |