void $qb->end_group()
end_group is the complement to Query Builder method begin_group, see it for usage.