DEPRECATED - I no longer use Atom and have no plans to update this plugin. Feel free to fork and take it over if you still use this, otherwise I recommend you use https://github.com/Glavin001/atom-beautify.
Run PHP Code Beautifier to fix your PHP. Goes well with linter-phpcs.
Use the phpcbf:reformat command.