From e09bb93e18a333eff8e6a4156f5b58ba9c7d25cd Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 Sep 2020 20:16:23 +0200 Subject: [PATCH] Coding style: switch PHPCS to PSR12 Also temporarily ignore test code (one step at a time). Reference: https://www.php-fig.org/psr/psr-12/ Related to #95 --- Makefile | 4 ---- phpcs.xml | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7415887a..181b61c4 100644 --- a/Makefile +++ b/Makefile @@ -27,10 +27,6 @@ PHPCS := $(BIN)/phpcs code_sniffer: @$(PHPCS) -### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend... -PHPCS_%: - @$(PHPCS) --report-full --report-width=200 --standard=$* - ### - errors by Git author code_sniffer_blame: @$(PHPCS) --report-gitblame diff --git a/phpcs.xml b/phpcs.xml index 29b95d56..349dc566 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -5,13 +5,13 @@ index.php application plugins - tests + */*.css */*.js - - + + -- 2.41.0