| Total Complexity | 10 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 52.17% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class MatchingResult implements MiddlewareInterface |
||
| 11 | { |
||
| 12 | private bool $success; |
||
| 13 | private Route $route; |
||
| 14 | private array $parameters = []; |
||
| 15 | private array $methods = []; |
||
| 16 | |||
| 17 | private function __construct() |
||
| 18 | { |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function fromSuccess(Route $route, array $parameters): self |
||
| 22 | { |
||
| 23 | $new = new self(); |
||
| 24 | $new->success = true; |
||
| 25 | $new->route = $route; |
||
| 26 | $new->parameters = $parameters; |
||
| 27 | return $new; |
||
| 28 | } |
||
| 29 | |||
| 30 | 3 | public static function fromFailure(array $methods): self |
|
| 31 | { |
||
| 32 | 3 | $new = new self(); |
|
| 33 | 3 | $new->methods = $methods; |
|
| 34 | 3 | $new->success = false; |
|
| 35 | 3 | return $new; |
|
| 36 | } |
||
| 37 | |||
| 38 | 2 | public function isSuccess(): bool |
|
| 41 | } |
||
| 42 | |||
| 43 | 2 | public function isMethodFailure(): bool |
|
| 46 | } |
||
| 47 | |||
| 48 | public function parameters(): array |
||
| 49 | { |
||
| 50 | return $this->parameters; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function methods(): array |
||
| 56 | } |
||
| 57 | |||
| 58 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 67 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths