Skip to content

Commit b4a7f8b

Browse files
committed
lint: cs fix
1 parent 92a1098 commit b4a7f8b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/CollectionTest.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,20 @@ public function test_groupBy_indexBy_countBy()
359359

360360
public function test_toArray()
361361
{
362-
$array = [['deep'=> 1, 'ok'], 'shallow', 0, false];
362+
$array = [['deep' => 1, 'ok'], 'shallow', 0, false];
363363

364364
$this->assertSame($array, _::_($array)->toArray());
365365
}
366366

367367
public function test_partition()
368368
{
369369
$nums = _::_(range(1, 10));
370-
$oddEvn = $nums->partition(function ($i) { return $i % 2; })->get();
371-
$evnOdd = $nums->partition(function ($i) { return $i % 2 == 0; })->get();
370+
$oddEvn = $nums->partition(function ($i) {
371+
return $i % 2;
372+
})->get();
373+
$evnOdd = $nums->partition(function ($i) {
374+
return $i % 2 == 0;
375+
})->get();
372376

373377
$this->assertCount(2, $oddEvn, '2 partitions');
374378
$this->assertArrayHasKey(0, $oddEvn, 'odd partition');

0 commit comments

Comments
 (0)