Skip to content

Commit b45d14f

Browse files
committed
Add Composer scripts to execute code style check & fix through PHPCS
1 parent 0ccfd6e commit b45d14f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"squizlabs/php_codesniffer": "^3.5"
1010
},
1111
"license": "MIT",
12-
"minimum-stability": "stable"
12+
"minimum-stability": "stable",
13+
"scripts": {
14+
"cs-check": "phpcs -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1",
15+
"cs-fix": "phpcbf -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1"
16+
}
1317
}

0 commit comments

Comments
 (0)