Add Composer scripts to execute code style check & fix through PHPCS

This commit is contained in:
Marc Würth
2020-04-23 21:50:02 +02:00
parent 0ccfd6e9a3
commit b45d14f56f
+5 -1
View File
@@ -9,5 +9,9 @@
"squizlabs/php_codesniffer": "^3.5"
},
"license": "MIT",
"minimum-stability": "stable"
"minimum-stability": "stable",
"scripts": {
"cs-check": "phpcs -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1",
"cs-fix": "phpcbf -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1"
}
}