Files
Testing/tus-php/bin/lint.sh
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

15 lines
361 B
Bash

#!/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