From 74a0ce3f035354dd779d24d071bb5eff98a1d500 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 21 Jul 2020 22:17:53 +0200 Subject: [PATCH] CS ruleset: minor tweaks 1. According to the `composer.json` file, the minimum supported PHP version is PHP 5.4, so PHPCompatibility should be set to check for that, not for PHP 5.6 and up. 2. Excluding a complete sniff instead of including it twice and excluding the single errorcode. This is more efficient as it prevents the sniff from running completely instead of letting the sniff run and silencing the error at the moment it is being thrown. --- .phpcs.xml.dist | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index db53aea3..61d8926f 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -16,6 +16,7 @@ + @@ -34,13 +35,8 @@ - - - - - - +