Code cleanup

Fixing whitespace, spelling error. Ran PHPUnit tests, as well
as stylize.php and checkSyntax.php

Change-Id: I3644f37b550310d392d30e4ba814b57f614c514f