Automating Code Style Fixes with Git and PHP Coding Standards Fixer
We all know coding standards in the PHP community and try to follow them. Despite this, we are all human beings and make mistakes from time to time. That being said means that we have a few options here:
1) Fix all code style issues manually
2) Use plugins for IDE or run CLI tools to fix everything
These two options are not the ones I want to use. There is one more option - automate everything. Even though I'm going to use Git and PHP CS Fixer, the principles are simple and you can apply them to any language and any control version system. Keep reading to remove the routine and become a more productive developer.