| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UploadImage extends Component |
||
| 9 | { |
||
| 10 | public $model; |
||
| 11 | |||
| 12 | public $attribute; |
||
| 13 | |||
| 14 | public $multiple = false; |
||
| 15 | protected $listeners = ['image_deleted' => '$refresh']; |
||
| 16 | |||
| 17 | public function mount($model = null, $attribute = 'image', $multiple = false) |
||
| 18 | { |
||
| 19 | $this->model = $model; |
||
| 20 | $this->attribute = $attribute; |
||
| 21 | $this->multiple = $multiple; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function render() |
||
| 25 | { |
||
| 26 | return view('website::livewire.admin.system.upload-image'); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function removeImage(Media $media, $collection = null) |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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