Conditions | 5 |
Paths | 5 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function __construct($importerKey) |
||
44 | { |
||
45 | $this->importerKey = $importerKey; |
||
46 | $this->serviceName = static::class . '.' . $this->importerKey; |
||
47 | |||
48 | $serviceConfig = Config::inst()->get($this->serviceName); |
||
49 | foreach ($this->yieldKeyVal($serviceConfig) as $key => $value) { |
||
50 | $this->config()->merge($key, $value); |
||
51 | |||
52 | if ($key === 'extensions') { |
||
53 | if (!is_array($value)) { |
||
54 | throw new \Exception("Extensions for {$this->serviceName} is not an array"); |
||
55 | } |
||
56 | foreach ($this->yieldSingle($value) as $extension) { |
||
57 | static::add_extension($extension); |
||
58 | } |
||
63 |
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