From b45d14f56f1aef8fea17736717388373ee5ac5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Thu, 23 Apr 2020 20:38:48 +0200 Subject: [PATCH] Add Composer scripts to execute code style check & fix through PHPCS --- composer.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fefd90b7..f5c8f0b3 100644 --- a/composer.json +++ b/composer.json @@ -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" + } }