Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
43 | { |
||
44 | $if = $this->invoker->invoke($this->if, ['request' => $request]); |
||
45 | $middleware = $if ? $this->then : $this->else; |
||
46 | |||
47 | return $middleware->process($request, $handler); |
||
48 | } |
||
49 | } |
||
50 |