Skip to content

Commit ec4b3a7

Browse files
committed
Apply fixes from StyleCI
1 parent 0307ae4 commit ec4b3a7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/Validation/ValidationForEachTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function testConditionalRulesCanBeAddedToForEachWithAssociativeArray()
268268
],
269269
],
270270
[
271-
'foo.*' => Rule::forEach(fn(mixed $value, string $attribute) => [
271+
'foo.*' => Rule::forEach(fn (mixed $value, string $attribute) => [
272272
'bar' => Rule::when(true, ['accepted'], ['declined']),
273273
]),
274274
]
@@ -278,6 +278,7 @@ public function testConditionalRulesCanBeAddedToForEachWithAssociativeArray()
278278
'foo.1.bar' => ['validation.accepted'],
279279
], $v->getMessageBag()->toArray());
280280
}
281+
281282
public function testConditionalRulesCanBeAddedToForEachWithList()
282283
{
283284
$v = new Validator(
@@ -289,15 +290,14 @@ public function testConditionalRulesCanBeAddedToForEachWithList()
289290
],
290291
],
291292
[
292-
'foo.*.bar' => Rule::forEach(fn(mixed $value, string $attribute) => [
293+
'foo.*.bar' => Rule::forEach(fn (mixed $value, string $attribute) => [
293294
Rule::when(true, ['accepted'], ['declined']),
294295
]),
295296
]);
296297

297298
$this->assertEquals([
298299
'foo.1.bar' => ['validation.accepted'],
299300
], $v->getMessageBag()->toArray());
300-
301301
}
302302

303303
public function testConditionalRulesCanBeAddedToForEachWithObject()
@@ -311,10 +311,9 @@ public function testConditionalRulesCanBeAddedToForEachWithObject()
311311
],
312312
],
313313
[
314-
'foo.*.bar' => Rule::forEach(fn (mixed $value, string $attribute) =>
315-
Rule::when(true, ['accepted'], ['declined']),
316-
),
317-
]);
314+
'foo.*.bar' => Rule::forEach(fn (mixed $value, string $attribute) => Rule::when(true, ['accepted'], ['declined']),
315+
),
316+
]);
318317

319318
$this->assertEquals([
320319
'foo.1.bar' => ['validation.accepted'],

0 commit comments

Comments
 (0)