A York fast food take-away which scored a one-star rating for opening before it was ready has now gained top marks following a re-inspection.