mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2025-08-30 03:11:24 +08:00
Make usage example correct.
(took me some time to figure this out for the Travis CI integration for WordPress SEO :) )
This commit is contained in:
parent
bb29ff84cf
commit
8b5ed1827d
1 changed files with 3 additions and 3 deletions
|
@ -18,10 +18,10 @@ To install PHP_CodeSniffer and the WordPress standard(s):
|
|||
|
||||
```bash
|
||||
cd ~/path/to/install/dir
|
||||
git clone git@github.com:squizlabs/PHP_CodeSniffer.git phpcs
|
||||
git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards wpcs
|
||||
git clone https://github.com/squizlabs/PHP_CodeSniffer.git phpcs
|
||||
git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs
|
||||
cd phpcs
|
||||
phpcs --config_set installed_paths ../wpcs
|
||||
phpcs --config-set installed_paths ../wpcs
|
||||
```
|
||||
|
||||
Then edit your `$PATH` environment variable to include the location of the `phpcs` script.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue