| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 6 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 31 | protected function buildExecutionChain()  | 
            ||
| 32 |     { | 
            ||
| 33 | $stack = $this->getMiddlewareStack();  | 
            ||
| 34 | |||
| 35 |         $next = function (ServerRequestInterface $request, ResponseInterface $response) { | 
            ||
| 36 | return $response;  | 
            ||
| 37 | };  | 
            ||
| 38 | |||
| 39 |         foreach ($stack as $middleware) { | 
            ||
| 40 |             $next = function (ServerRequestInterface $request, ResponseInterface $response) use ($middleware, $next) { | 
            ||
| 41 | return $middleware($request, $response, $next);  | 
            ||
| 42 | };  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | return $next;  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |