diff --git a/src/Models/Group.php b/src/Models/Group.php index 687b126..9a5c9e0 100644 --- a/src/Models/Group.php +++ b/src/Models/Group.php @@ -19,7 +19,7 @@ class Group extends GroupModel */ public function getPermissionsForGroup(int $groupId): array { - $permissions = $this->db->table('auth_groups') + $permissions = $this->db->table('auth_groups') ->select('auth_permissions.id, auth_permissions.name, auth_permissions.description') ->join('auth_groups_permissions', 'auth_groups_permissions.group_id = auth_groups.id', 'inner') ->join('auth_permissions', 'auth_permissions.id = auth_groups_permissions.permission_id', 'inner') @@ -27,9 +27,9 @@ public function getPermissionsForGroup(int $groupId): array ->get() ->getResultObject(); - $found = []; + $found = []; foreach ($permissions as $row) { - $found[$row->id] = strtolower($row->name); + $found[$row->id] = strtolower($row->name); } return $found;