| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 2 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 34 | { |
||
| 35 | 2 | if (!isset($this->stack[$this->current])) { |
|
| 36 | 1 | return $this->responseFactory->createResponse(); |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | $middleware = $this->stack[$this->current]; |
|
| 40 | 1 | $this->current++; |
|
| 41 | |||
| 42 | 1 | return $this->invoker->call([$middleware, 'process'], [ |
|
| 43 | 1 | 'request' => $request, |
|
| 44 | 1 | 'handler' => $this, |
|
| 45 | ]); |
||
| 48 |