From 826dc40b11db69b2fb073b81d5360dfa8fcab04e Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Tue, 18 Aug 2026 23:42:14 +0800 Subject: [PATCH] style: apply latest changes of `binary_operator_spaces` fixer --- tests/system/Validation/RulesTest.php | 6 +++--- tests/system/Validation/ValidationTest.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/system/Validation/RulesTest.php b/tests/system/Validation/RulesTest.php index 27806ac0fdbc..d4b71bd0a5f6 100644 --- a/tests/system/Validation/RulesTest.php +++ b/tests/system/Validation/RulesTest.php @@ -823,8 +823,8 @@ public static function provideRequiredWithAndOtherRules(): iterable [true, ['mustBeADate' => []]], // `otherField` and `mustBeADate` exist [true, ['mustBeADate' => '', 'otherField' => '']], - [true, ['mustBeADate' => '2023-06-12', 'otherField' => 'exists']], - [true, ['mustBeADate' => '2023-06-12', 'otherField' => '']], + [true, ['mustBeADate' => '2023-06-12', 'otherField' => 'exists']], + [true, ['mustBeADate' => '2023-06-12', 'otherField' => '']], [false, ['mustBeADate' => '', 'otherField' => 'exists']], [false, ['mustBeADate' => [], 'otherField' => 'exists']], [false, ['mustBeADate' => null, 'otherField' => 'exists']], @@ -854,7 +854,7 @@ public static function provideRequiredWithAndOtherRuleWithValueZero(): iterable { yield from [ [true, ['married' => '0', 'partner_name' => '']], - [true, ['married' => '1', 'partner_name' => 'Foo']], + [true, ['married' => '1', 'partner_name' => 'Foo']], [false, ['married' => '1', 'partner_name' => '']], ]; } diff --git a/tests/system/Validation/ValidationTest.php b/tests/system/Validation/ValidationTest.php index 6c7cb20de0e9..b43bb057b52f 100644 --- a/tests/system/Validation/ValidationTest.php +++ b/tests/system/Validation/ValidationTest.php @@ -605,13 +605,13 @@ public function testSetRuleWithCustomErrors(): void $this->validation->setRule( 'foo', 'Foo', - ['foo' => 'is_numeric'], + ['foo' => 'is_numeric'], ['is_numeric' => 'Nope. Not a number.'], ); $this->validation->setRule( 'bar', 'Bar', - ['bar' => 'is_numeric'], + ['bar' => 'is_numeric'], ['is_numeric' => 'Nope. Not a number.'], ); $result = $this->validation->run($data); @@ -1497,13 +1497,13 @@ public static function provideIfExistRuleWithAsterisk(): iterable yield 'dot-on-end-fail' => [ false, ['status.*' => 'if_exist|in_list[status_1,status_2]'], - ['status' => ['bad-status']], + ['status' => ['bad-status']], ]; yield 'dot-on-end-pass' => [ true, ['status.*' => 'if_exist|in_list[status_1,status_2]'], - ['status' => ['status_1']], + ['status' => ['status_1']], ]; yield 'dot-on-middle-fail' => [