Skip to content

Commit 62b1da8

Browse files
committed
Simplify custom phpcs standards discovery.
dealerdirect/phpcodesniffer-composer-installer is already an indirect dependency through slevomat/coding-standards. This package avoids having to manually specify the paths to custom phpcs standards.
1 parent 4bcbaf8 commit 62b1da8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CakePHP/ruleset.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
>
77
<description>CakePHP coding standard</description>
88

9-
<config name="installed_paths" value="../../slevomat/coding-standard,../../../slevomat/coding-standard,../vendor/slevomat/coding-standard"/>
10-
119
<exclude-pattern>\.git</exclude-pattern>
1210
<exclude-pattern>/*/tmp/</exclude-pattern>
1311
<exclude-pattern>tests/*/templates/*</exclude-pattern>

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"require": {
2121
"php": ">=8.1",
22+
"dealerdirect/phpcodesniffer-composer-installer": "^1.1.2",
2223
"phpstan/phpdoc-parser": "^2.1",
2324
"slevomat/coding-standard": "^8.23",
2425
"squizlabs/php_codesniffer": "^4.0"

0 commit comments

Comments
 (0)