Ran code through PHPCS and fixed standards errors that came up.

Original code passed with flying colors using Code Review module. Ran it
through PHP_CodeSniffer and it found a crazy amount of errors.

Should be fixed now though.