2021-05-13 20:36:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Checks the PHP CS syntax
|
|
|
|
#
|
|
|
|
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then
|
|
|
|
EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}");
|
|
|
|
else
|
|
|
|
EXTRA_ARGS='';
|
|
|
|
fi
|
|
|
|
|
2024-01-15 14:13:44 +01:00
|
|
|
./vendor/bin/php-cs-fixer check -v --diff --using-cache=no ${EXTRA_ARGS}
|