File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 99
1010final class Collector
1111{
12- /**
13- * @var array<int|string, mixed>|Traversable<int|string, mixed>
14- */
12+ /** @var array<int|string, mixed>|Traversable<int|string, mixed> */
1513 private static iterable $ data = [];
1614
17- /**
18- * @var callable(mixed $datum, int|string|null $key=): bool|null
19- */
15+ /** @var callable(mixed $datum, int|string|null $key=): bool|null */
2016 private $ when ;
2117
22- /**
23- * @var callable(mixed $datum, int|string|null $key=): mixed
24- */
18+ /** @var callable(mixed $datum, int|string|null $key=): mixed */
2519 private $ transform ;
2620
2721 private ?int $ limit = null ;
@@ -31,7 +25,7 @@ final class Collector
3125 */
3226 public static function setUp (iterable $ data ): self
3327 {
34- $ self = new self ();
28+ $ self = new self ();
3529 $ self ->$ data = $ data ;
3630
3731 return $ self ;
@@ -72,7 +66,7 @@ public function getResults(): array
7266 Assert::isCallable ($ this ->when );
7367 Assert::isCallable ($ this ->transform );
7468
75- $ count = 0 ;
69+ $ count = 0 ;
7670 $ collectedData = [];
7771
7872 foreach ($ this ->data as $ key => $ datum ) {
You can’t perform that action at this time.
0 commit comments