| Conditions | 5 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function __construct(array $config, int $defaultShopId) |
||
| 23 | { |
||
| 24 | parent::__construct($config); |
||
| 25 | $this->customConfig = $config['custom']['config'] ?? []; |
||
| 26 | |||
| 27 | // support for Shopware()->Config()->getByNamespace('<pluginName>', '<configName>') |
||
| 28 | if (isset($config['custom']['plugins'])) { |
||
| 29 | foreach ($config['custom']['plugins'] as $shopId => $pluginConfigs) { |
||
| 30 | foreach ($pluginConfigs as $pluginName => $pluginConfigValues) { |
||
| 31 | foreach ($pluginConfigValues as $pluginConfigName => $pluginConfigValue) { |
||
| 32 | $pluginConfigKey = $pluginName . '::' . $pluginConfigName; |
||
| 33 | $this->customConfig[(int) $shopId][$pluginConfigKey] = $pluginConfigValue; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->defaultShopId = $defaultShopId; |
||
| 40 | } |
||
| 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