Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
36 | 4 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
37 | { |
||
38 | 4 | if (empty($this->middleware[$this->index])) { |
|
39 | 4 | return call_user_func($this->default, $request); |
|
40 | } |
||
41 | |||
42 | 2 | return $this->middleware[$this->index]->process($request, $this->nextHandler()); |
|
43 | } |
||
44 | |||
58 |