Reformatted some code to appease PHPCS