File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Run the code style check only if a configuration file exists.
4+ if [ -f " .phpcs.xml" ] || [ -f " phpcs.xml" ] || [ -f " .phpcs.xml.dist" ] || [ -f " phpcs.xml.dist" ]
5+ then
6+ vendor/bin/phpcbf " $@ "
7+ fi
Original file line number Diff line number Diff line change 77 ],
88 "homepage" : " https://wp-cli.org" ,
99 "license" : " MIT" ,
10- "type" : " phpcodesniffer-standard" ,
10+ "type" : " phpcodesniffer-standard" ,
1111 "require" : {
1212 "php" : " >=5.6" ,
1313 "behat/behat" : " ^3.7" ,
6060 " bin/run-behat-tests" ,
6161 " bin/run-linter-tests" ,
6262 " bin/run-php-unit-tests" ,
63- " bin/run-phpcs-tests"
63+ " bin/run-phpcs-tests" ,
64+ " bin/run-phpcbf-cleanup"
6465 ],
6566 "scripts" : {
6667 "behat" : " run-behat-tests" ,
6768 "behat-rerun" : " rerun-behat-tests" ,
6869 "lint" : " run-linter-tests" ,
6970 "phpcs" : " run-phpcs-tests" ,
71+ "phpcbf" : " run-phpcbf-cleanup" ,
7072 "phpunit" : " run-php-unit-tests" ,
7173 "prepare-tests" : " install-package-tests" ,
7274 "test" : [
You can’t perform that action at this time.
0 commit comments