@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * @param $name |
|
130 | + * @param string $name |
|
131 | 131 | * @return bool |
132 | 132 | * @throws NotValidImageSizeException |
133 | 133 | */ |
@@ -156,9 +156,9 @@ discard block |
||
156 | 156 | |
157 | 157 | /** |
158 | 158 | * @param UploadedFile|string $image |
159 | - * @param $old_name |
|
159 | + * @param string $old_name |
|
160 | 160 | * @param $new_name |
161 | - * @return array|null |
|
161 | + * @return SavedImageData |
|
162 | 162 | * @throws NotValidImageSizeException |
163 | 163 | */ |
164 | 164 | public function replace($image, $old_name, $new_name = null) |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * @param UploadedFile|string $image |
173 | 173 | * @param $new_name |
174 | - * @return array|null |
|
174 | + * @return SavedImageData |
|
175 | 175 | * @throws NotValidImageSizeException |
176 | 176 | */ |
177 | 177 | public function replaceOrSave($image, $new_name = null) |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Gcsc\LaravelMultisizeImage\ImageManagers; |
4 | 4 | |
5 | +use Gcsc\LaravelMultisizeImage\Exceptions\NotValidImageSizeException; |
|
6 | +use Gcsc\LaravelMultisizeImage\ImageSizes\ImageSizeInterface; |
|
7 | +use Gcsc\LaravelMultisizeImage\SavedImageData; |
|
5 | 8 | use Illuminate\Http\UploadedFile; |
9 | +use Illuminate\Support\Facades\Storage; |
|
6 | 10 | use Intervention\Image\Constraint; |
7 | 11 | use Intervention\Image\Facades\Image; |
8 | -use Illuminate\Support\Facades\Storage; |
|
9 | -use Gcsc\LaravelMultisizeImage\SavedImageData; |
|
10 | -use Gcsc\LaravelMultisizeImage\ImageSizes\ImageSizeInterface; |
|
11 | -use Gcsc\LaravelMultisizeImage\Exceptions\NotValidImageSizeException; |
|
12 | 12 | |
13 | 13 | abstract class AbstractImageManager |
14 | 14 | { |