PHP CS fixer

Ran several autofixes on our codebase.

Also took some time to manually convert lots of JS to AMD since the fixers were mistaking javascript code in .php files for PHP code and incorrectly formatting it.