Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed May 5, 2023
1 parent c010d38 commit 8cb0445
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 0 additions & 2 deletions modules/Collection/src/ArraySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use Closure;
use Elephox\Collection\Contract\GenericSet;
use Iterator;
use IteratorIterator;
use Traversable;

/**
* @template T
Expand Down
1 change: 1 addition & 0 deletions modules/Collection/src/IsKeyedEnumerable.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use RecursiveIteratorIterator;
use Stringable;
use Traversable;

use const JSON_FORCE_OBJECT;
use const JSON_HEX_AMP;
use const JSON_HEX_APOS;
Expand Down
2 changes: 1 addition & 1 deletion modules/Collection/test/ArrayListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testCount(): void
$arr = new ArrayList(['test', 'test2', 'test3']);

self::assertCount(3, $arr);
self::assertSame(2, $arr->count(fn ($v) => strlen($v) === 5));
self::assertSame(2, $arr->count(static fn ($v) => strlen($v) === 5));
}

public function testOffsetUnset(): void
Expand Down
2 changes: 1 addition & 1 deletion modules/Collection/test/ArraySetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ public function testCount(): void

self::assertCount(3, $set);
self::assertSame(3, $set->count());
self::assertSame(1, $set->count(fn ($v) => $v === 'b'));
self::assertSame(1, $set->count(static fn ($v) => $v === 'b'));
}
}
2 changes: 1 addition & 1 deletion modules/Collection/test/FlipIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public function testGetInnerIterator(): void
$it = new ArrayIterator([]);
$flip = new FlipIterator($it);

$this->assertSame($it, $flip->getInnerIterator());
self::assertSame($it, $flip->getInnerIterator());
}
}
4 changes: 2 additions & 2 deletions modules/Collection/test/KeySelectIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ final class KeySelectIteratorTest extends TestCase
public function testGetInnerIterator(): void
{
$it = new ArrayIterator([]);
$keySelect = new KeySelectIterator($it, fn ($v) => $v);
$keySelect = new KeySelectIterator($it, static fn ($v) => $v);

$this->assertSame($it, $keySelect->getInnerIterator());
self::assertSame($it, $keySelect->getInnerIterator());
}
}
4 changes: 2 additions & 2 deletions modules/Collection/test/SelectIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ final class SelectIteratorTest extends TestCase
public function testGetInnerIterator(): void
{
$it = new ArrayIterator([]);
$select = new SelectIterator($it, fn ($v) => $v);
$select = new SelectIterator($it, static fn ($v) => $v);

$this->assertSame($it, $select->getInnerIterator());
self::assertSame($it, $select->getInnerIterator());
}
}
4 changes: 2 additions & 2 deletions modules/Collection/test/UniqueByIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public function testIterator(): void
public function testGetInnerIterator(): void
{
$it = new ArrayIterator([]);
$select = new UniqueByIterator($it, fn ($v) => $v, DefaultEqualityComparer::same(...));
$select = new UniqueByIterator($it, static fn ($v) => $v, DefaultEqualityComparer::same(...));

$this->assertSame($it, $select->getInnerIterator());
self::assertSame($it, $select->getInnerIterator());
}
}

0 comments on commit 8cb0445

Please sign in to comment.