Skip to content

Commit 3a1e26c

Browse files
Adds style fixer
1 parent 2a220c4 commit 3a1e26c

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"squizlabs/php_codesniffer": "~3.7.0",
2626
"magento/magento-coding-standard": "*",
2727
"phpcompatibility/php-compatibility": "^9.3",
28-
"slevomat/coding-standard": "^8.8"
28+
"slevomat/coding-standard": "^8.8",
29+
"sebastian/phpcpd": "^6.0"
2930
},
3031
"repositories": [
3132
{
@@ -57,6 +58,7 @@
5758
"test": "./vendor/bin/phpunit -c phpunit.xml",
5859
"phpstan": "phpstan",
5960
"sniffer": "vendor/bin/phpcs --colors -p ./src --standard=phpcs-ruleset.xml",
61+
"fix-style": "vendor/bin/phpcbf --colors -p ./src --standard=phpcs-ruleset.xml",
6062
"sniffer:php8.1": "vendor/bin/phpcs -p ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1"
6163
}
6264
}

composer.lock

+63-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)