php-cs-fixer-staged
PHP CS Fixer Staged¶
Runs php-cs-fixer on staged PHP files only.
Usage¶
Description¶
- Gets the list of staged PHP files using
git diff --name-only --cached --diff-filter=ACM - Automatically locates
php-cs-fixerin PATH or common locations (vendor/bin/,bin/,tools/) - Runs
php-cs-fixer fixon only the staged PHP files
Source¶
See src/php-cs-fixer-staged.cjs