From 1530a00b638f61bf52e2acbc08c94e486a0316fd Mon Sep 17 00:00:00 2001 From: Anna Reiter Date: Mon, 4 May 2026 14:21:33 +0200 Subject: [PATCH] [TASK] Add `phpCsFixer` into a Bash command --- Build/Scripts/runTests.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index f51b2840..6abb9d90 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -171,6 +171,15 @@ cleanRenderedDocumentationFiles() { echo "done" } + phpCsFixer() { + if [ -n "${CGLCHECK_DRY_RUN}" ]; then + CGLCHECK_DRY_RUN="--dry-run --diff" + fi + COMMAND="php .Build/bin/php-cs-fixer fix -v ${CGLCHECK_DRY_RUN} --config=Build/php-cs-fixer/config.php" + ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name phpCsFixer-${SUFFIX} ${IMAGE_PHP} ${COMMAND} + return + } + loadHelp() { # Load help text into $HELP read -r -d '' HELP <