| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4.0466 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 2 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
|
| 45 | { |
||
| 46 | 2 | if ($this->requestMatcher->matches($request)) { |
|
| 47 | 1 | if (null !== $this->successPlugin) { |
|
| 48 | 1 | return $this->successPlugin->handleRequest($request, $next, $first); |
|
| 49 | } |
||
| 50 | 1 | } elseif (null !== $this->failurePlugin) { |
|
| 51 | return $this->failurePlugin->handleRequest($request, $next, $first); |
||
| 52 | } |
||
| 53 | |||
| 54 | 1 | return $next($request); |
|
| 55 | } |
||
| 56 | } |
||
| 57 |