Hatooz /
weather-module
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Configuration file for DI container. |
||
| 4 | */ |
||
| 5 | return [ |
||
| 6 | |||
| 7 | // Services to add to the container. |
||
| 8 | "services" => [ |
||
| 9 | "content" => [ |
||
| 10 | "shared" => true, |
||
| 11 | "callback" => function () { |
||
| 12 | $content = new \Anax\Content\FileBasedContent(); |
||
|
0 ignored issues
–
show
|
|||
| 13 | $content->setDI($this); |
||
|
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
| 14 | |||
| 15 | // Load the configuration files |
||
| 16 | $cfg = $this->get("configuration"); |
||
| 17 | $config = $cfg->load("content.php"); |
||
| 18 | $config = $config["config"] ?? null; |
||
| 19 | $file = $config["file"] ?? null; |
||
|
0 ignored issues
–
show
|
|||
| 20 | |||
| 21 | $content->configure($config); |
||
| 22 | |||
| 23 | return $content; |
||
| 24 | } |
||
| 25 | ], |
||
| 26 | ], |
||
| 27 | ]; |
||
| 28 |
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