@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * Get the services provided by the provider. |
| 36 | 36 | * |
| 37 | - * @return array |
|
| 37 | + * @return string[] |
|
| 38 | 38 | */ |
| 39 | 39 | public function provides() |
| 40 | 40 | { |
@@ -109,9 +109,9 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Prepend the thumbnail name to filename |
| 112 | - * @param $path |
|
| 112 | + * @param string $path |
|
| 113 | 113 | * @param $thumbnail |
| 114 | - * @return mixed|string |
|
| 114 | + * @return string |
|
| 115 | 115 | */ |
| 116 | 116 | private function newFilename($path, $thumbnail) |
| 117 | 117 | { |
@@ -147,6 +147,7 @@ discard block |
||
| 147 | 147 | * @param string $path |
| 148 | 148 | * @param string $filename |
| 149 | 149 | * @param string null $thumbnail |
| 150 | + * @param string $thumbnail |
|
| 150 | 151 | */ |
| 151 | 152 | private function makeNew($path, $filename, $thumbnail) |
| 152 | 153 | { |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace Modules\Media\Image; |
| 2 | 2 | |
| 3 | 3 | use Illuminate\Contracts\Config\Repository; |
| 4 | -use Illuminate\Support\Facades\App; |
|
| 5 | 4 | use Modules\Media\Entities\File; |
| 6 | 5 | |
| 7 | 6 | class Imagy |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | protected $namespace = 'Modules\Media\Http\Controllers'; |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * @return string |
|
| 14 | + * @return boolean |
|
| 15 | 15 | */ |
| 16 | 16 | protected function getFrontendRoute() |
| 17 | 17 | { |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * Update a resource |
| 14 | 14 | * @param File $file |
| 15 | 15 | * @param $data |
| 16 | - * @return mixed |
|
| 16 | + * @return File |
|
| 17 | 17 | */ |
| 18 | 18 | public function update($file, $data) |
| 19 | 19 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * Find multiple files for the given zone and entity |
| 74 | 74 | * @param zone $zone |
| 75 | 75 | * @param object $entity |
| 76 | - * @return object |
|
| 76 | + * @return Collection |
|
| 77 | 77 | */ |
| 78 | 78 | public function findMultipleFilesByZoneForEntity($zone, $entity) |
| 79 | 79 | { |