Use updated PHP-CS-Fixer in standard location #16

Merged
MrPetovan merged 2 commits from toddy/friendica-docker-ci:php-cs-fixer into stable 2024-01-15 15:38:37 +01:00
Showing only changes of commit aa8725eb58 - Show all commits

View file

@ -2,10 +2,10 @@
#
# Checks the PHP CS syntax
#
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then
EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}");
else
EXTRA_ARGS='';
fi
./vendor/bin/php-cs-fixer check -v --diff --using-cache=no ${EXTRA_ARGS}
./vendor/bin/php-cs-fixer fix -v --diff --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}