From 4e7ba937024a8c4fbc8af6ca2efc0441027da380 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 23 Aug 2023 20:55:17 +0200 Subject: [PATCH] QA: fix condition order --- tests/RulesetTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RulesetTest.php b/tests/RulesetTest.php index ca9b15d0..40c41a91 100644 --- a/tests/RulesetTest.php +++ b/tests/RulesetTest.php @@ -103,7 +103,7 @@ public function __construct( $ruleset, $expected = [] ) { $output = $this->collect_phpcs_result(); - if ( ! is_object( $output ) || empty( $output ) ) { + if ( empty( $output ) || ! is_object( $output ) ) { printf( 'The PHPCS command checking the ruleset hasn\'t returned any issues. Bailing ...' . PHP_EOL ); exit( 1 ); // Die early, if we don't have any output. }