Add "--diff" for php-cs-fixer

This commit is contained in:
Philipp Holzer 2021-04-07 20:17:35 +02:00
parent f25d4dc2a6
commit 6217041753
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD
1 changed files with 1 additions and 1 deletions

View File

@ -38,5 +38,5 @@ jobs:
- name: Run coding standards check
run: |
if ! echo "${{ steps.changes.outputs.all }}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${{ steps.changes.outputs.all }}"); else EXTRA_ARGS=''; fi
bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}
bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --diff --diff-format=udiff --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}
shell: bash