Conditions | 2 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function __invoke(string $appName, string $context, array $globals, array $server): int |
||
38 | { |
||
39 | $injector = Injector::getInstance($appName, $context, $this->appDir); |
||
40 | $injector->getInstance(HttpCacheInterface::class); |
||
41 | $router = $injector->getInstance(RouterInterface::class); |
||
42 | assert($router instanceof RouterInterface); |
||
43 | $request = $router->match($globals, $server); |
||
44 | try { |
||
45 | /** @psalm-suppress all */ |
||
46 | $resource = $injector->getInstance(ResourceInterface::class); |
||
47 | $resource->{$request->method}->uri($request->path)($request->query); |
||
48 | } catch (Throwable) { |
||
49 | $injector->getInstance(TransferInterface::class); |
||
50 | |||
51 | return 1; |
||
52 | } |
||
53 | |||
54 | // @codeCoverageIgnoreStart |
||
55 | return 0; |
||
56 | // @codeCoverageIgnoreEnd |
||
59 |
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