Conditions | 5 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | protected function removeRedundantParams(array $data): array |
||
55 | { |
||
56 | $data = array_filter($data, function ($item) { |
||
57 | if ($item instanceof ArrayObject) { |
||
58 | return $item->count() !== 0; |
||
59 | } |
||
60 | return !empty($item); |
||
61 | }); |
||
62 | |||
63 | foreach ($data as $key => $value) { |
||
64 | if (is_array($value) || $value instanceof ArrayObject) { |
||
65 | $data[$key] = $this->removeRedundantParams($value); |
||
66 | } |
||
67 | } |
||
68 | |||
69 | return $data; |
||
70 | } |
||
72 |
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