From 341942f033dc20c245de241dbce28cff2b91c7c0 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 6 Apr 2024 04:27:23 +0200 Subject: [PATCH] TEST --- composer.json | 2 +- config/composer/actions.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 691a210..acbc669 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ "Yoast\\WHIP\\Config\\Composer\\Actions::check_coding_standards" ], "check-cs-thresholds": [ - "@putenv YOASTCS_THRESHOLD_ERRORS=0", + "@putenv YOASTCS_THRESHOLD_ERRORS=2", "@putenv YOASTCS_THRESHOLD_WARNINGS=0", "Yoast\\WHIP\\Config\\Composer\\Actions::check_cs_thresholds" ], diff --git a/config/composer/actions.php b/config/composer/actions.php index 0b975a0..42f7cc3 100644 --- a/config/composer/actions.php +++ b/config/composer/actions.php @@ -177,8 +177,7 @@ public static function check_cs_thresholds() { $exit_code = 0; if ( $above_threshold === true || $return > 2 ) { $exit_code = $return; - } - elseif ( $threshold_exact === false ) { + } elseif ( $threshold_exact === false ) { $exit_code = 1; }