@@ -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 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Field constructor. |
178 | 178 | * |
179 | - * @param $column |
|
179 | + * @param string $column |
|
180 | 180 | * @param array $arguments |
181 | 181 | */ |
182 | 182 | public function __construct($column, $arguments = []) |
@@ -375,9 +375,9 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * Get or set rules. |
377 | 377 | * |
378 | - * @param null $rules |
|
378 | + * @param string $rules |
|
379 | 379 | * |
380 | - * @return mixed |
|
380 | + * @return Field |
|
381 | 381 | */ |
382 | 382 | public function rules($rules = null) |
383 | 383 | { |
@@ -596,8 +596,8 @@ discard block |
||
596 | 596 | /** |
597 | 597 | * Add html attributes to elements. |
598 | 598 | * |
599 | - * @param array|string $attribute |
|
600 | - * @param mixed $value |
|
599 | + * @param string $attribute |
|
600 | + * @param boolean|string $value |
|
601 | 601 | * |
602 | 602 | * @return $this |
603 | 603 | */ |
@@ -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 | { |