| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function translate($value, array $payload) |
||
| 37 | { |
||
| 38 | foreach ($value as $inputValueKey => $item) { |
||
| 39 | $item[static::KEY_VALUES] = array_keys($payload[static::KEY_OPTIONS]); |
||
| 40 | $item[static::KEY_VALUE_TRANSLATIONS] = []; |
||
| 41 | foreach ($payload[static::KEY_OPTIONS] as $optionKey => $optionValue) { |
||
| 42 | if (isset($optionValue[$inputValueKey])) { |
||
| 43 | $item[static::KEY_VALUE_TRANSLATIONS][$optionKey] = $optionValue[$inputValueKey]; |
||
| 44 | |||
| 45 | continue; |
||
| 46 | } |
||
| 47 | $item[static::KEY_VALUE_TRANSLATIONS][$optionKey] = $optionKey; |
||
| 48 | } |
||
| 49 | $value[$inputValueKey] = $item; |
||
| 50 | } |
||
| 51 | |||
| 52 | return $value; |
||
| 53 | } |
||
| 55 |
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