| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3.009 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 8 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 47 | { |
||
| 48 | 8 | if ($this->level++ === 0) { |
|
| 49 | 8 | $this->queue->rewind(); |
|
| 50 | } |
||
| 51 | 8 | $current = $this->queue->current(); |
|
| 52 | 8 | if (!$current) { |
|
| 53 | return $this->responseFactory->createResponse(); |
||
| 54 | } |
||
| 55 | 8 | $this->queue->next(); |
|
| 56 | 8 | $result = call_user_func_array([$current, 'process'], [$request, $this]); |
|
| 57 | 5 | $this->level--; |
|
| 58 | 5 | return $result; |
|
| 59 | } |
||
| 61 |