| Conditions | 3 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | protected function getMedia(string $name, HasMedia $model, string $collection): array |
||
| 11 | { |
||
| 12 | return old($name) ? old($name) : $model |
||
| 13 | ->getMedia($collection) |
||
| 14 | ->map(function (Media $media) { |
||
| 15 | return [ |
||
| 16 | 'name' => $media->name, |
||
| 17 | 'fileName' => $media->file_name, |
||
| 18 | 'uuid' => $media->uuid, |
||
| 19 | 'previewUrl' => $media->hasGeneratedConversion('preview') ? $media->getUrl('preview') : '', |
||
| 20 | 'order' => $media->order_column, |
||
| 21 | 'customProperties' => $media->custom_properties, |
||
| 22 | 'extension' => $media->extension, |
||
| 23 | 'size' => $media->size, |
||
| 24 | 'createdAt' => $media->created_at->timestamp, |
||
| 25 | ]; |
||
| 26 | }) |
||
| 27 | ->keyBy('uuid') |
||
| 28 | ->toArray(); |
||
| 29 | } |
||
| 31 |
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