@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @param int|ImageRecord $model |
36 | 36 | * @param array $attributes |
37 | - * @return mixed |
|
37 | + * @return ImageRecord |
|
38 | 38 | */ |
39 | 39 | public function update($model, array $attributes) |
40 | 40 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace HustleWorks\ChuteLaravel\Repositories; |
4 | 4 | |
5 | +use HustleWorks\ChuteLaravel\Models\Image; |
|
5 | 6 | use HustleWorks\Chute\Contracts\ImageRepositoryInterface; |
6 | 7 | use HustleWorks\Chute\DTO\ImageRecord; |
7 | -use HustleWorks\ChuteLaravel\Models\Image; |
|
8 | 8 | |
9 | 9 | class ImageRepository implements ImageRepositoryInterface |
10 | 10 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Size On Disk |
38 | 38 | * |
39 | - * @param $disk |
|
39 | + * @param string $disk |
|
40 | 40 | * @param $path |
41 | 41 | * @return bool|int |
42 | 42 | */ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @param string $destination_path |
74 | 74 | * @param string|null $source_disk |
75 | 75 | * @param string|null $destination_disk |
76 | - * @return mixed |
|
76 | + * @return boolean |
|
77 | 77 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
78 | 78 | */ |
79 | 79 | public function move($source_path, $destination_path, $source_disk = null, $destination_disk = null) |
@@ -92,6 +92,10 @@ discard block |
||
92 | 92 | return false; |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $disk |
|
97 | + * @param string $path |
|
98 | + */ |
|
95 | 99 | public function delete($disk, $path) |
96 | 100 | { |
97 | 101 | return Storage::disk($disk)->delete($path); |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace HustleWorks\ChuteLaravel\Traits; |
4 | 4 | |
5 | -use HustleWorks\Chute\DTO\ImageConfiguration; |
|
6 | 5 | use HustleWorks\ChuteLaravel\Jobs\ImageProcessingJob; |
7 | 6 | use HustleWorks\ChuteLaravel\Models\Image; |
8 | -use HustleWorks\Chute\ImageConfigurationBuilder; |
|
9 | 7 | use HustleWorks\ChuteLaravel\Services\ImageUploadService; |
8 | +use HustleWorks\Chute\DTO\ImageConfiguration; |
|
9 | +use HustleWorks\Chute\ImageConfigurationBuilder; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * Trait ChuteImageModelTrait |