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 <