Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Apr 6, 2024
1 parent e679ba5 commit 341942f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down
3 changes: 1 addition & 2 deletions config/composer/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {

Check failure on line 180 in config/composer/actions.php

View workflow job for this annotation

GitHub Actions / Check code style

ELSEIF statement must be on a new line.
$exit_code = 1;
}

Expand Down

0 comments on commit 341942f

Please sign in to comment.