@@ -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 | */ |
@@ -156,7 +156,7 @@ |
||
156 | 156 | |
157 | 157 | /** |
158 | 158 | * @param string $name |
159 | - * @param mixed $value |
|
159 | + * @param boolean $value |
|
160 | 160 | * |
161 | 161 | * @return $this |
162 | 162 | */ |
@@ -68,6 +68,9 @@ |
||
68 | 68 | ->put($destination, $contents, $this->getRemoteHeadersForFile($file->getKey(), $media->getCustomHeaders(), $storage->mimeType($file->getKey()))); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $type |
|
73 | + */ |
|
71 | 74 | public function copyToMediaLibrary(string $pathToFile, Media $media, ?string $type = null, ?string $targetFileName = null) |
72 | 75 | { |
73 | 76 | $destinationFileName = $targetFileName ?: pathinfo($pathToFile, PATHINFO_BASENAME); |
@@ -21,6 +21,8 @@ |
||
21 | 21 | /** |
22 | 22 | * Constructor method. |
23 | 23 | * |
24 | + * @param string $key |
|
25 | + * @param string $disk |
|
24 | 26 | * @return void |
25 | 27 | */ |
26 | 28 | public function __construct($key, $disk) |