File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,15 +14,17 @@ This project comes with a phpcs configuration (`phpcs.xml`) you can use to check
1414Run phpcs in the project root directory:
1515
1616```
17- phpcs --extensions=php --standard=./ phpcs.xml -n -p .
17+ ./vendor/bin/ phpcs ./
1818```
1919
20- Before you can run phpcs, you need to install PHP Codesniffer and WordPress coding standards like so:
20+ You need to install the plugin's development dependencies before you can run the PHPCS checks. A regular
2121
2222```
23- composer create-project wp-coding-standards/wpcs:dev-master --no-dev $HOME/wpcs
23+ composer install
2424```
2525
26- Or read the official installation instructions here:
26+ should install all the required packages.
27+
28+ You can read the official WPCS installation instructions here:
2729
2830https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
You can’t perform that action at this time.
0 commit comments