Fix Pint formatting
This commit is contained in:
@@ -8,13 +8,12 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class RoleSwitchService
|
||||
{
|
||||
public function __construct(private RoleDashboardService $dashboardService)
|
||||
{
|
||||
}
|
||||
public function __construct(private RoleDashboardService $dashboardService) {}
|
||||
|
||||
public function getUserRoleNames(int $userId): array
|
||||
{
|
||||
$roles = UserRole::getRolesByUserId($userId);
|
||||
|
||||
return array_values(array_filter(array_map(fn ($r) => (string) ($r['role_name'] ?? ''), $roles)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user