Skip to content

Commit

Permalink
QA: fix condition order
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Aug 23, 2023
1 parent dbb81df commit 4e7ba93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/RulesetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down

0 comments on commit 4e7ba93

Please sign in to comment.