| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 3 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
| 26 | {
|
||
| 27 | 3 | $middleware = $this->dic->get($this->name); |
|
| 28 | |||
| 29 | 3 | if ($middleware instanceof RequestHandlerInterface) |
|
| 30 | {
|
||
| 31 | 1 | $middleware = new HandlerMiddleware($middleware); |
|
| 32 | } |
||
| 33 | |||
| 34 | 3 | return $middleware->process($req, $handler); |
|
| 35 | } |
||
| 36 | } |