Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 6 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class ViewPackage implements RegistrationInterface, GlobalMiddlewareRegistrationInterface |
||
17 | 1 | { |
|
18 | /** |
||
19 | * @param Container $c |
||
20 | 1 | */ |
|
21 | 1 | public function addToContainer(Container $c) |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param Container $container |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getMiddleware(Container $c): array |
||
34 | { |
||
35 | $defaultLayout = $c->get('default_layout'); |
||
36 | $errorPages = $c->get('error_pages'); |
||
37 | $viewEngine = $c->get(ViewEngine::class); |
||
38 | $layoutMiddleware = new LayoutMiddleware($viewEngine, $defaultLayout); |
||
39 | $exceptionMiddleware = new ExceptionMiddleware($viewEngine, $errorPages); |
||
40 | |||
41 | return [ |
||
42 | $layoutMiddleware, |
||
43 | $exceptionMiddleware, |
||
44 | ]; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param Container $c |
||
49 | * @return array |
||
50 | */ |
||
51 | public function getGlobalMiddleware(Container $c): array |
||
56 | ]; |
||
57 | } |
||
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