| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function loadRolesForUser(User $user): array |
||
| 19 | { |
||
| 20 | $domain = Domain::getCurrent($user->getDatabase()); |
||
| 21 | $userRoles = UserRole::getForUser($user->getId(), $user->getDatabase(), $domain->getId()); |
||
| 22 | |||
| 23 | return array_map(fn(UserRole $r): string => $r->getRole(), $userRoles); |
||
| 24 | } |
||
| 51 | } |