Skip to content

Instantly share code, notes, and snippets.

@guillaumevoisin
Created June 18, 2015 10:05
Show Gist options
  • Save guillaumevoisin/e5aac2994bf170482c13 to your computer and use it in GitHub Desktop.
Save guillaumevoisin/e5aac2994bf170482c13 to your computer and use it in GitHub Desktop.
PHP-CS-Fixer on modified files
git diff --name-only --cached --diff-filter=ACMRTUXB | while read filename; do php-cs-fixer --level=symfony fix $filename; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment