Fixed Typos

Fixed typos in a bunch of different files. Mostly minor but now these files pass `php -l`.