diff -u b/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh --- b/core/scripts/dev/commit-code-check.sh +++ b/core/scripts/dev/commit-code-check.sh @@ -176,8 +176,8 @@ vendor/bin/phpcs -ps --runtime-set installed_paths "$TOP_LEVEL/vendor/drupal/coder/coder_sniffer" --standard="$TOP_LEVEL/core/phpcs.xml.dist" PHPCS=$? if [ "$PHPCS" -ne "0" ]; then - # If there are failures set the status to a number other than 0. - STATUS=1 + # If there are failures set the FINAL_STATUS to a number other than 0. + FINAL_STATUS=1 else printf "PHPCS: $FILE ${green}passed${reset}\n" fi