| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | class File extends Model |
||
| 35 | { |
||
| 36 | use HasFactory; |
||
| 37 | use SoftDeletes; |
||
| 38 | use HasUuid; |
||
| 39 | |||
| 40 | protected $table = 'files'; |
||
| 41 | |||
| 42 | protected $fillable = [ |
||
| 43 | 'model_id', |
||
| 44 | 'model_type', |
||
| 45 | 'category', |
||
| 46 | 'filename', |
||
| 47 | 'original_filename', |
||
| 48 | 'size', |
||
| 49 | 'path', |
||
| 50 | 'mime_type', |
||
| 51 | 'source', |
||
| 52 | ]; |
||
| 53 | |||
| 54 | protected $casts = [ |
||
| 55 | 'size' => 'int', |
||
| 56 | 'model_id' => 'int', |
||
| 57 | ]; |
||
| 58 | |||
| 59 | public function model(): MorphTo |
||
| 60 | { |
||
| 61 | return $this->morphTo('model'); |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @codeCoverageIgnore |
||
| 66 | */ |
||
| 67 | protected static function newFactory(): FileFactory |
||
| 70 | } |
||
| 71 | } |
||
| 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