@@ -47,7 +47,7 @@ |
||
47 | 47 | * |
48 | 48 | * @param string $name |
49 | 49 | * |
50 | - * @return mixed |
|
50 | + * @return Conversion |
|
51 | 51 | * |
52 | 52 | * @throws \Spatie\MediaLibrary\Exceptions\InvalidConversion |
53 | 53 | */ |
@@ -32,6 +32,9 @@ |
||
32 | 32 | app(FileManipulator::class)->createDerivedFiles($media); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $type |
|
37 | + */ |
|
35 | 38 | public function copyToMediaLibrary(string $pathToFile, Media $media, ?string $type = null, ?string $targetFileName = null) |
36 | 39 | { |
37 | 40 | $destinationFileName = $targetFileName ?: pathinfo($pathToFile, PATHINFO_BASENAME); |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Clear the media's entire media collection. |
75 | 75 | * |
76 | - * @param null $model |
|
77 | - * @param \Spatie\MediaLibrary\Models\Media[]|\Illuminate\Support\Collection $excludedMedia |
|
76 | + * @param HasMedia|null $model |
|
77 | + * @param Media $excludedMedia |
|
78 | 78 | * @return $this |
79 | 79 | */ |
80 | 80 | public function clearMediaCollection($model = null, $excludedMedia = []) |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Register global media conversions. |
143 | 143 | * |
144 | - * @param Media|null $media |
|
144 | + * @param null|\self $media |
|
145 | 145 | * @return void |
146 | 146 | */ |
147 | 147 | public function registerMediaConversions(self $media = null) |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | |
343 | 343 | /** |
344 | 344 | * @param string $name |
345 | - * @param mixed $value |
|
345 | + * @param boolean $value |
|
346 | 346 | * |
347 | 347 | * @return $this |
348 | 348 | */ |