@@ -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 @@ discard block |
||
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,6 +76,9 @@ discard block |
||
73 | 76 | return array_merge($mimeTypeHeader, $extraHeaders, $this->customRemoteHeaders, $mediaCustomHeaders); |
74 | 77 | } |
75 | 78 | |
79 | + /** |
|
80 | + * @return resource |
|
81 | + */ |
|
76 | 82 | public function getStream(Media $media) |
77 | 83 | { |
78 | 84 | $sourceFile = $this->getMediaDirectory($media).'/'.$media->file_name; |
@@ -156,7 +156,7 @@ discard block |
||
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 | */ |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * |
219 | 219 | * @param \Illuminate\Http\Request $request |
220 | 220 | * |
221 | - * @return \Illuminate\Http\Response |
|
221 | + * @return \Symfony\Component\HttpFoundation\StreamedResponse |
|
222 | 222 | */ |
223 | 223 | public function toResponse($request) |
224 | 224 | { |