Code cleanup for PHPCS

Run plugin.php through PHPCS and make all recommended changes.