Conditions | 5 |
Paths | 7 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | public function translate($value, array $payload): array |
||
39 | { |
||
40 | foreach ($value as $localeId => $scopedAttributes) { |
||
41 | if (!isset($value[$localeId][static::KEY_ATTRIBUTES])) { |
||
42 | $value[$localeId][static::KEY_ATTRIBUTES] = []; |
||
43 | } |
||
44 | foreach ($scopedAttributes as $attributeKey => $attribute) { |
||
45 | if (in_array($attributeKey, $this->options[static::ATTRIBUTE_BLACKLIST])) { |
||
46 | continue; |
||
47 | } |
||
48 | |||
49 | $value[$localeId][static::KEY_ATTRIBUTES][$attributeKey] = $attribute; |
||
50 | unset($value[$localeId][$attributeKey]); |
||
51 | } |
||
52 | } |
||
53 | |||
54 | return $value; |
||
55 | } |
||
57 |
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