Description

Runs php-cs-fixer when detecting changed php files.

Configuration

You can specify the path to your binary

git config hooks.php-cs-fixer.executable /custom/path/to/php-cs-fixer

Defaults to php-cs-fixer, occurs on pre-checkout.

Activation

git config --add hooks.enabled-plugins php/cs-fixer