Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
43 | 4 | public function process(ServerRequestInterface $request, DelegateInterface $delegate) |
|
44 | { |
||
45 | /** @var DelegateInterface $stackDelegate */ |
||
46 | 4 | $stackDelegate = array_reduce( |
|
47 | 4 | array_reverse($this->stack), |
|
48 | 4 | function(DelegateInterface $delegate, MiddlewareInterface $middleware) { |
|
49 | 4 | return new MiddlewareWrappedDelegate($delegate, $middleware); |
|
50 | 4 | }, |
|
51 | $delegate |
||
52 | 4 | ); |
|
53 | |||
54 | 4 | return $stackDelegate->process($request); |
|
55 | } |
||
56 | } |
||
57 |