Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function process( |
||
19 | ServerRequestInterface $request, |
||
20 | RequestHandlerInterface $handler): ResponseInterface |
||
21 | { |
||
22 | if ($this->callback instanceof MiddlewareInterface) { |
||
23 | return ($this->callback)->process($request, $handler); |
||
24 | } |
||
25 | return ($this->callback)($request, $handler); |
||
26 | } |
||
28 |