Spot the parse error?

I ran it through my debugger and got ‘unexpected $end’ on the final line… Not much help huh?