Fixed formatting to psr2 standards.

I saw quite a few files that were not formatted properly.

I ran the `php-cs-fixer` on it with the level set to `psr2`, so this should fix most of the problems.