Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-phpcs
357 B · 11 lines
at main
123456789101112#!/usr/bin/env sh
composer global require "squizlabs/php_codesniffer=*"
composer global require "wimg/php-compatibility"composer global require "wp-coding-standards/wpcs"
_WPCS="${COMPOSER_HOME}/vendor/wp-coding-standards/wpcs"_PHP_COMPAT="${COMPOSER_HOME}/vendor/wimg/php-compatibility"
phpcs --config-set installed_paths "${_WPCS}","${_PHP_COMPAT}"