Files

15 lines
361 B
Bash
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
#!/usr/bin/env sh
FIXER="php-cs-fixer"
bin=/usr/local/bin/${FIXER}
if ! command -v php-cs-fixer &>/dev/null; then
wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O ${bin} && chmod a+x ${bin}
fi
if [[ "$1" == "dry" ]]; then
${FIXER} fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
else
${FIXER} fix
fi