@@ -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 | { |
@@ -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 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * Prepend the thumbnail name to filename |
115 | 115 | * @param $path |
116 | 116 | * @param $thumbnail |
117 | - * @return mixed|string |
|
117 | + * @return string |
|
118 | 118 | */ |
119 | 119 | private function newFilename($path, $thumbnail) |
120 | 120 | { |
@@ -158,6 +158,7 @@ discard block |
||
158 | 158 | * @param MediaPath $path |
159 | 159 | * @param string $filename |
160 | 160 | * @param string null $thumbnail |
161 | + * @param string $thumbnail |
|
161 | 162 | */ |
162 | 163 | private function makeNew(MediaPath $path, $filename, $thumbnail) |
163 | 164 | { |
@@ -212,7 +213,7 @@ discard block |
||
212 | 213 | } |
213 | 214 | |
214 | 215 | /** |
215 | - * @param $filename |
|
216 | + * @param string $filename |
|
216 | 217 | * @return bool |
217 | 218 | */ |
218 | 219 | private function fileExists($filename) |
@@ -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 | { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Create a file row from the given file |
27 | 27 | * @param UploadedFile $file |
28 | - * @return mixed |
|
28 | + * @return \Illuminate\Database\Eloquent\Model |
|
29 | 29 | */ |
30 | 30 | public function createFromFile(UploadedFile $file) |
31 | 31 | { |
@@ -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 | { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * @param $fileName |
|
91 | + * @param string $fileName |
|
92 | 92 | * @return string |
93 | 93 | */ |
94 | 94 | private function getNewUniqueFilename($fileName) |
@@ -63,6 +63,9 @@ |
||
63 | 63 | return in_array(pathinfo($this->path, PATHINFO_EXTENSION), $this->imageExtensions); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $type |
|
68 | + */ |
|
66 | 69 | public function getThumbnail($type) |
67 | 70 | { |
68 | 71 | if ($this->isImage() && $this->getKey()) { |