Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class TranslationValuesRule implements Rule |
||
9 | { |
||
10 | public function passes($attribute, $value): bool |
||
11 | { |
||
12 | if (!is_array($value)) { |
||
13 | return false; |
||
14 | } |
||
15 | |||
16 | return collect($value) |
||
17 | ->filter(fn ($value, $key) => !LanguageCode::tryFrom($key)) |
||
18 | ->isEmpty(); |
||
19 | } |
||
20 | |||
21 | public function message(): string |
||
24 | } |
||
25 | } |
||
26 |
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