@@ -200,7 +200,7 @@ |
||
| 200 | 200 | * |
| 201 | 201 | * @param \Illuminate\Http\Request $request |
| 202 | 202 | * |
| 203 | - * @return \Illuminate\Http\Response |
|
| 203 | + * @return \Symfony\Component\HttpFoundation\StreamedResponse |
|
| 204 | 204 | */ |
| 205 | 205 | public function toResponse($request) |
| 206 | 206 | { |
@@ -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 | */ |
@@ -76,6 +76,9 @@ discard block |
||
| 76 | 76 | return array_merge($mimeTypeHeader, $extraHeaders, $this->customRemoteHeaders, $mediaCustomHeaders); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @return resource |
|
| 81 | + */ |
|
| 79 | 82 | public function getStream(Media $media) |
| 80 | 83 | { |
| 81 | 84 | $sourceFile = $this->getMediaDirectory($media).'/'.$media->file_name; |
@@ -162,6 +165,9 @@ discard block |
||
| 162 | 165 | } |
| 163 | 166 | } |
| 164 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $oldFileName |
|
| 170 | + */ |
|
| 165 | 171 | protected function renameResponsiveImages(Media $media, $oldFileName) |
| 166 | 172 | { |
| 167 | 173 | $newFileName = pathinfo($media->file_name, PATHINFO_FILENAME); |