| Conditions | 5 | 
| Paths | 7 | 
| Total Lines | 20 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 28 | public function translate($value, array $payload) | ||
| 29 |     { | ||
| 30 |         if ($value === null) { | ||
| 31 | return $value; | ||
| 32 | } | ||
| 33 | |||
| 34 |         if (!$value) { | ||
| 35 | $value = $this->getMap(); | ||
| 36 | } | ||
| 37 | |||
| 38 | $result = []; | ||
| 39 | $localeMap = $this->getMap(); | ||
| 40 | |||
| 41 |         foreach ($value as $locale => $content) { | ||
| 42 |             if (array_key_exists($locale, $localeMap)) { | ||
| 43 | $result[$locale] = $localeMap[$locale]; | ||
| 44 | } | ||
| 45 | } | ||
| 46 | |||
| 47 | return $result; | ||
| 48 | } | ||
| 58 | 
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