File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,13 @@ bin path to your `$PATH` variable in `~/.profile`, `~/.bashrc` or `~/.zshrc`:
35
35
36
36
export PATH="$PATH:$HOME/.composer/vendor/bin"
37
37
38
- Register the Drupal and DrupalPractice Standard with PHPCS:
39
-
40
- phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer
41
-
42
38
43
39
### Composer Installer Plugins
44
40
45
41
The Coder package (>= 8.2.11) now works with Composer Installer Plugins,
46
42
that find and register standards whenever packages are installed or updated.
47
43
To use such a plugin within your project, follow these steps.
48
44
49
- composer require --dev dealerdirect/phpcodesniffer-composer-installer
50
45
composer require --dev drupal/coder
51
46
52
47
Now, you will see Drupal and DrupalPractice listed in the available PHP
@@ -56,7 +51,6 @@ CodeSniffer standards.
56
51
57
52
The same can be done for a Composer global installation.
58
53
59
- composer global require dealerdirect/phpcodesniffer-composer-installer
60
54
composer global require drupal/coder
61
55
62
56
You can’t perform that action at this time.
0 commit comments