Conditions | 5 |
Paths | 6 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function getResizableObjects($property = null) : array |
||
20 | { |
||
21 | $objects = []; |
||
22 | |||
23 | foreach ($this::RESIZEABLES as $resizable) { |
||
24 | if (!property_exists($this, $resizable)) { |
||
25 | continue; |
||
26 | } |
||
27 | |||
28 | $collectionOrEntity = $this->{$resizable}; |
||
29 | |||
30 | if ($collectionOrEntity instanceof Collection) { |
||
31 | $objects = array_merge($objects, $collectionOrEntity->getValues()); |
||
32 | } |
||
33 | |||
34 | if ($collectionOrEntity instanceof AbstractFile) { |
||
35 | $objects = array_merge($objects, [$collectionOrEntity]); |
||
36 | } |
||
37 | } |
||
38 | |||
39 | return $objects; |
||
40 | } |
||
61 | } |
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