Skip to content

Instantly share code, notes, and snippets.

@MatthieuScarset
Created August 29, 2023 11:56
Show Gist options
  • Save MatthieuScarset/7c8aaac6f3158a4dc96133f753b43b2f to your computer and use it in GitHub Desktop.
Save MatthieuScarset/7c8aaac6f3158a4dc96133f753b43b2f to your computer and use it in GitHub Desktop.
PHPCS - One line format file (composer custom script)
// Format/fix uncommitted files
"scripts": {
"codefix": "for F in $(git diff --name-only); do vendor/bin/phpcbf \"$F\"; done",
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment