@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Checks if a user has any capability |
39 | 39 | * |
40 | - * @param array $capabilityNames |
|
40 | + * @param array $capabilityName |
|
41 | 41 | * @return boolean |
42 | 42 | */ |
43 | 43 | public function hasAnyCapability(array $capabilityName); |
@@ -37,7 +37,6 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Checks for a role |
39 | 39 | * |
40 | - * @param string $roleName |
|
41 | 40 | * @return boolean |
42 | 41 | */ |
43 | 42 | public function hasRole($role) |
@@ -76,7 +75,7 @@ discard block |
||
76 | 75 | /** |
77 | 76 | * Checks if a user has a capability |
78 | 77 | * |
79 | - * @param string $capabilityName |
|
78 | + * @param string $capability |
|
80 | 79 | * @return boolean |
81 | 80 | */ |
82 | 81 | public function hasCapability($capability) |
@@ -116,7 +115,7 @@ discard block |
||
116 | 115 | /** |
117 | 116 | * Initializes the Guardian instance. |
118 | 117 | * |
119 | - * @return void |
|
118 | + * @return false|null |
|
120 | 119 | */ |
121 | 120 | protected function init() |
122 | 121 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | use View; |
4 | 4 | use Input; |
5 | 5 | use Redirect; |
6 | -use Request; |
|
7 | 6 | use Usman\Guardian\Validators\UserValidator; |
8 | 7 | use Usman\Guardian\Validators\Exceptions\ValidationException; |
9 | 8 | use Usman\Guardian\Repositories\Interfaces\UserRepositoryInterface; |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * Deletes a record and its related records. |
113 | 113 | * |
114 | 114 | * @param int $id |
115 | - * @param array $method methods that define the relation |
|
115 | + * @param array $methods methods that define the relation |
|
116 | 116 | * @return bool |
117 | 117 | */ |
118 | 118 | public function deleteWith($id, array $methods) |
@@ -39,7 +39,6 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * Template method for creating a record in storage |
41 | 41 | * |
42 | - * @param array $fields |
|
43 | 42 | * @return mixed |
44 | 43 | */ |
45 | 44 | public function create(array $data); |
@@ -48,7 +47,6 @@ discard block |
||
48 | 47 | * Template method for updating a record in storage |
49 | 48 | * |
50 | 49 | * @param int $id |
51 | - * @param array $fields |
|
52 | 50 | * @return bool |
53 | 51 | */ |
54 | 52 | public function update($id, array $data); |