@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * Set query callback this tree. |
141 | 141 | * |
142 | - * @return Model |
|
142 | + * @return Tree |
|
143 | 143 | */ |
144 | 144 | public function query(\Closure $callback) |
145 | 145 | { |
@@ -312,7 +312,6 @@ discard block |
||
312 | 312 | /** |
313 | 313 | * Return all items of the tree. |
314 | 314 | * |
315 | - * @param array $items |
|
316 | 315 | */ |
317 | 316 | public function getItems() |
318 | 317 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * Get or set option for grid. |
231 | 231 | * |
232 | 232 | * @param string $key |
233 | - * @param mixed $value |
|
233 | + * @param boolean $value |
|
234 | 234 | * |
235 | 235 | * @return $this|mixed |
236 | 236 | */ |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | /** |
361 | 361 | * Get the grid paginator. |
362 | 362 | * |
363 | - * @return mixed |
|
363 | + * @return Tools\Paginator |
|
364 | 364 | */ |
365 | 365 | public function paginator() |
366 | 366 | { |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | * |
548 | 548 | * @param bool $toArray |
549 | 549 | * |
550 | - * @return array|Collection|mixed |
|
550 | + * @return Collection |
|
551 | 551 | */ |
552 | 552 | public function processFilter($toArray = true) |
553 | 553 | { |
@@ -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 | { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * Get name of this column. |
221 | 221 | * |
222 | - * @return mixed |
|
222 | + * @return string |
|
223 | 223 | */ |
224 | 224 | public function getName() |
225 | 225 | { |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | /** |
230 | 230 | * Format label. |
231 | 231 | * |
232 | - * @param $label |
|
232 | + * @param string $label |
|
233 | 233 | * |
234 | 234 | * @return mixed |
235 | 235 | */ |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | /** |
244 | 244 | * Get label of the column. |
245 | 245 | * |
246 | - * @return mixed |
|
246 | + * @return string |
|
247 | 247 | */ |
248 | 248 | public function getLabel() |
249 | 249 | { |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * Display using display abstract. |
307 | 307 | * |
308 | 308 | * @param string $abstract |
309 | - * @param array $arguments |
|
309 | + * @param Closure[] $arguments |
|
310 | 310 | * |
311 | 311 | * @return Column |
312 | 312 | */ |
@@ -174,7 +174,7 @@ |
||
174 | 174 | /** |
175 | 175 | * Get stub contents. |
176 | 176 | * |
177 | - * @param $name |
|
177 | + * @param string $name |
|
178 | 178 | * |
179 | 179 | * @return string |
180 | 180 | */ |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * Get all permissions of user. |
11 | 11 | * |
12 | - * @return mixed |
|
12 | + * @return Collection |
|
13 | 13 | */ |
14 | 14 | public function allPermissions() : Collection |
15 | 15 | { |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * Check if user has permission. |
21 | 21 | * |
22 | - * @param $ability |
|
22 | + * @param string $ability |
|
23 | 23 | * @param array $arguments |
24 | 24 | * |
25 | 25 | * @return bool |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * Check if user is administrator. |
54 | 54 | * |
55 | - * @return mixed |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | public function isAdministrator() : bool |
58 | 58 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @param string $role |
66 | 66 | * |
67 | - * @return mixed |
|
67 | + * @return boolean |
|
68 | 68 | */ |
69 | 69 | public function isRole(string $role) : bool |
70 | 70 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param array $roles |
78 | 78 | * |
79 | - * @return mixed |
|
79 | + * @return boolean |
|
80 | 80 | */ |
81 | 81 | public function inRoles(array $roles = []) : bool |
82 | 82 | { |