UniSharp /
laravel-uploadable
| 1 | <?php |
||||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||||
| 2 | |||||
|
0 ignored issues
–
show
|
|||||
| 3 | namespace UniSharp\Uploadable\Traits; |
||||
| 4 | |||||
| 5 | use UniSharp\Uploadable\File; |
||||
| 6 | |||||
| 7 | trait Helpers |
||||
|
0 ignored issues
–
show
|
|||||
| 8 | { |
||||
|
0 ignored issues
–
show
|
|||||
| 9 | 8 | protected function bindUploadable(File $file, $extra = null): self |
|||
|
0 ignored issues
–
show
|
|||||
| 10 | { |
||||
|
0 ignored issues
–
show
|
|||||
| 11 | 8 | if ($extra) { |
|||
| 12 | 4 | $file->extra = $extra; |
|||
| 13 | } |
||||
| 14 | |||||
| 15 | 8 | $file->uploadable()->associate($this)->save(); |
|||
|
0 ignored issues
–
show
$this of type UniSharp\Uploadable\Traits\Helpers is incompatible with the type Illuminate\Database\Eloquent\Model expected by parameter $model of Illuminate\Database\Eloq...ns\MorphTo::associate().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 16 | |||||
| 17 | 8 | return $this; |
|||
| 18 | } |
||||
|
0 ignored issues
–
show
|
|||||
| 19 | } |
||||
|
0 ignored issues
–
show
|
|||||
| 20 |