Conditions | 5 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
41 | protected function removeRedundantParams(array $data): array |
||
42 | { |
||
43 | $data = array_filter($data, function ($item) { |
||
44 | if ($item instanceof ArrayObject) { |
||
45 | return $item->count() !== 0; |
||
46 | } |
||
47 | return !empty($item); |
||
48 | }); |
||
49 | |||
50 | foreach ($data as $key => $value) { |
||
51 | if (is_array($value) || $value instanceof ArrayObject) { |
||
52 | $data[$key] = $this->removeRedundantParams($value); |
||
53 | } |
||
54 | } |
||
55 | |||
56 | return $data; |
||
57 | } |
||
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