Skip to content

Instantly share code, notes, and snippets.

View Mezzle's full-sized avatar

Martin Meredith Mezzle

View GitHub Profile
@Mezzle
Mezzle / fix-commit
Last active October 11, 2015 09:38
Modified Version of ZF2 pre-commit hook
#!/bin/bash
for f in `git diff --cached --name-status --diff-filter=ACM | grep -Ev "^D" | awk '{print $2}' | grep -E "ph(p|tml)" | grep -v "misc/migrations"`;
do
php-cs-fixer --fixers=-psr0,-phpdoc_params fix $f
done