@@ -159,7 +159,7 @@ |
||
159 | 159 | */ |
160 | 160 | protected function applyRolesPolicy(IdentityInterface $identity, array $roles): Result |
161 | 161 | { |
162 | - $identityRoles = (array)Hash::get((array)$identity->getOriginalData(), 'roles'); |
|
162 | + $identityRoles = (array) Hash::get((array) $identity->getOriginalData(), 'roles'); |
|
163 | 163 | |
164 | 164 | if (!empty(array_intersect($identityRoles, $roles))) { |
165 | 165 | return new Result(true); |
@@ -29,6 +29,6 @@ |
||
29 | 29 | */ |
30 | 30 | public function hasRole(string $name): bool |
31 | 31 | { |
32 | - return in_array($name, (array)$this->get('roles')); |
|
32 | + return in_array($name, (array) $this->get('roles')); |
|
33 | 33 | } |
34 | 34 | } |