Published On Aug. 8th 2017

Professional PHP Workflow in Sublime Text 3: Automatic PHPCS Fixing

Episode 8 Run Time 5:03


It's great that we can now detect PSR-2 inconsistencies in our projects, but wouldn't it be nice if those issues could be automatically fixed without requiring an ounce of effort on our parts? And what if we could extend things further to provide extra optimizations? For example, can we automatically remove unused class imports each time we save a file? Well of course we can, thanks to php-cs-fixer.