Skip to content

Commit b4b2eca

Browse files
authored
Merge pull request #2048 from WordPress/fix/phpcs
Add PHPCS ruleset from Plugin Check and fix issues
2 parents d13fba1 + 4c06a40 commit b4b2eca

File tree

20 files changed

+469
-76
lines changed

20 files changed

+469
-76
lines changed

composer.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@
2020
"ext-gd": "Required to use Modern Image Format's Dominant_Color_Image_Editor_GD class",
2121
"ext-zlib": "Required for compression of URL Metric data submitted to the REST API for storage in Optimization Detective"
2222
},
23+
"repositories":[
24+
{
25+
"type":"composer",
26+
"url":"https://wpackagist.org",
27+
"only": [
28+
"wpackagist-plugin/*",
29+
"wpackagist-theme/*"
30+
]
31+
}
32+
],
33+
"extra": {
34+
"installer-paths": {
35+
"vendor/{$vendor}/{$name}/": [
36+
"wpackagist-plugin/plugin-check"
37+
]
38+
}
39+
},
2340
"require-dev": {
2441
"phpcompatibility/php-compatibility": "^9.3",
2542
"phpstan/extension-installer": "^1.3",
@@ -33,12 +50,14 @@
3350
"wp-phpunit/wp-phpunit": "^6.5",
3451
"yoast/phpunit-polyfills": "^4.0",
3552
"phpstan/php-8-stubs": "^0.4.0",
36-
"phpstan/phpstan-strict-rules": "^1.6"
53+
"phpstan/phpstan-strict-rules": "^1.6",
54+
"wpackagist-plugin/plugin-check": "^1.5"
3755
},
3856
"config": {
3957
"allow-plugins": {
4058
"dealerdirect/phpcodesniffer-composer-installer": true,
41-
"phpstan/extension-installer": true
59+
"phpstan/extension-installer": true,
60+
"composer/installers": true
4261
},
4362
"platform": {
4463
"php": "7.2"

0 commit comments

Comments
 (0)