@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Extend column displayer. |
127 | 127 | * |
128 | - * @param $name |
|
128 | + * @param string $name |
|
129 | 129 | * @param $displayer |
130 | 130 | */ |
131 | 131 | public static function extend($name, $displayer) |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | /** |
160 | 160 | * Set model for column. |
161 | 161 | * |
162 | - * @param $model |
|
162 | + * @param Model $model |
|
163 | 163 | */ |
164 | 164 | public function setModel($model) |
165 | 165 | { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | /** |
217 | 217 | * Get name of this column. |
218 | 218 | * |
219 | - * @return mixed |
|
219 | + * @return string |
|
220 | 220 | */ |
221 | 221 | public function getName() |
222 | 222 | { |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Format label. |
228 | 228 | * |
229 | - * @param $label |
|
229 | + * @param string $label |
|
230 | 230 | * |
231 | 231 | * @return mixed |
232 | 232 | */ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Get label of the column. |
242 | 242 | * |
243 | - * @return mixed |
|
243 | + * @return string |
|
244 | 244 | */ |
245 | 245 | public function getLabel() |
246 | 246 | { |
@@ -108,6 +108,7 @@ |
||
108 | 108 | |
109 | 109 | /** |
110 | 110 | * {@inheritdoc} |
111 | + * @param \Closure $callback |
|
111 | 112 | */ |
112 | 113 | public function display($callback = null) |
113 | 114 | { |
@@ -229,7 +229,7 @@ |
||
229 | 229 | /** |
230 | 230 | * Get options for Select field in form. |
231 | 231 | * |
232 | - * @return \Illuminate\Support\Collection |
|
232 | + * @return callable |
|
233 | 233 | */ |
234 | 234 | public static function selectOptions() |
235 | 235 | { |
@@ -282,7 +282,6 @@ |
||
282 | 282 | /** |
283 | 283 | * Return all items of the tree. |
284 | 284 | * |
285 | - * @param array $items |
|
286 | 285 | */ |
287 | 286 | public function getItems() |
288 | 287 | { |
@@ -26,7 +26,6 @@ |
||
26 | 26 | /** |
27 | 27 | * Create a new Tools instance. |
28 | 28 | * |
29 | - * @param Builder $builder |
|
30 | 29 | */ |
31 | 30 | public function __construct(Tree $tree) |
32 | 31 | { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @param int $id |
35 | 35 | * |
36 | - * @return \Illuminate\Http\Response |
|
36 | + * @return \Illuminate\Http\JsonResponse |
|
37 | 37 | */ |
38 | 38 | public function destroy($id) |
39 | 39 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Get all permissions of user. |
57 | 57 | * |
58 | - * @return mixed |
|
58 | + * @return Collection |
|
59 | 59 | */ |
60 | 60 | public function allPermissions() : Collection |
61 | 61 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | /** |
98 | 98 | * Check if user is administrator. |
99 | 99 | * |
100 | - * @return mixed |
|
100 | + * @return boolean |
|
101 | 101 | */ |
102 | 102 | public function isAdministrator() : bool |
103 | 103 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param string $role |
111 | 111 | * |
112 | - * @return mixed |
|
112 | + * @return boolean |
|
113 | 113 | */ |
114 | 114 | public function isRole(string $role) : bool |
115 | 115 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @param array $roles |
123 | 123 | * |
124 | - * @return mixed |
|
124 | + * @return boolean |
|
125 | 125 | */ |
126 | 126 | public function inRoles(array $roles = []) : bool |
127 | 127 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * Get or set option for grid. |
229 | 229 | * |
230 | 230 | * @param string $key |
231 | - * @param mixed $value |
|
231 | + * @param boolean $value |
|
232 | 232 | * |
233 | 233 | * @return $this|mixed |
234 | 234 | */ |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | /** |
359 | 359 | * Get the grid paginator. |
360 | 360 | * |
361 | - * @return mixed |
|
361 | + * @return Tools\Paginator |
|
362 | 362 | */ |
363 | 363 | public function paginator() |
364 | 364 | { |
@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | * |
723 | 723 | * @param Closure|null $closure |
724 | 724 | * |
725 | - * @return $this|Tools\Footer |
|
725 | + * @return callable |
|
726 | 726 | */ |
727 | 727 | public function footer(Closure $closure = null) |
728 | 728 | { |
@@ -168,7 +168,7 @@ |
||
168 | 168 | * |
169 | 169 | * @param string $target |
170 | 170 | * |
171 | - * @return mixed |
|
171 | + * @return string |
|
172 | 172 | */ |
173 | 173 | protected function getClass($target) : string |
174 | 174 | { |