Process a directory and apply coding standards

rector

  • An automated tool for updating and refactoring PHP 5.3+ code.
    More information: <https://github.com/rectorphp/rector>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rector process {{path/to/directory}} --with-style

click the source code to copy