Skip to content

Instantly share code, notes, and snippets.

@nWidart
Last active January 11, 2022 11:37
Show Gist options
  • Save nWidart/0e940a832a4bd5ffcfd6 to your computer and use it in GitHub Desktop.
Save nWidart/0e940a832a4bd5ffcfd6 to your computer and use it in GitHub Desktop.
Adding pre-push git hook to run php-cs-fixer
#!/bin/sh
php-cs-fixer fix . --config-file=".php_cs"; git commit -am 'PSR-2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment