Skip to content

Instantly share code, notes, and snippets.

@pix-art
Created November 27, 2015 09:34
Show Gist options
  • Save pix-art/b5e06e0cf12426452d02 to your computer and use it in GitHub Desktop.
Save pix-art/b5e06e0cf12426452d02 to your computer and use it in GitHub Desktop.
Pre commit hook that runs php-cs-fixer on your src folder (Symfony2)
#!/bin/sh
BASE=$(git rev-parse --show-toplevel)
php-cs-fixer self-update
php-cs-fixer fix $BASE/src/ --level=symfony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment