diff --git a/tests/bin/phpcs.sh b/tests/bin/phpcs.sh index 7fb0a756c4f..bcaa0b96b17 100755 --- a/tests/bin/phpcs.sh +++ b/tests/bin/phpcs.sh @@ -5,11 +5,6 @@ if [[ ${RUN_PHPCS} == 1 ]]; then IGNORE="tests/cli/,includes/libraries/,includes/api/legacy/" if [ "$CHANGED_FILES" != "" ]; then - if [ ! -f "./vendor/bin/phpcs" ]; then - # Install wpcs globally - composer global require woocommerce/woocommerce-sniffs --update-with-all-dependencies - fi - echo "Running Code Sniffer." vendor/bin/phpcs --ignore=$IGNORE --encoding=utf-8 -s -n -p $CHANGED_FILES fi