| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 39 | 2 | private function getNextHandler(): RequestHandlerInterface | |
| 40 |     { | ||
| 41 | 2 | $middleware = array_shift($this->middleware); | |
| 42 | |||
| 43 | 2 |         if (null === $middleware) { | |
| 44 | 1 | return $this->lastHandler; | |
| 45 | } | ||
| 46 | |||
| 47 | 2 |         return new NextHandler(function (ServerRequestInterface $request) use ($middleware) { | |
| 48 | 2 | return $middleware->process($request, $this->getNextHandler()); | |
| 49 | 2 | }); | |
| 52 |