Skip to content

Instantly share code, notes, and snippets.

@displaynone
Created December 17, 2018 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save displaynone/1bf534840b69aeaf5ca1b8654f406816 to your computer and use it in GitHub Desktop.
Save displaynone/1bf534840b69aeaf5ca1b8654f406816 to your computer and use it in GitHub Desktop.
Run PHPCS in uncommit files
for i in $(git status -s | sed 's/^\s//' | cut -d " " -f2 | grep '.php'); do ./vendor/bin/phpcs "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment