Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 7, 2024
1 parent d092d09 commit 86af821
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@

final class Collector
{
/**
* @var array<int|string, mixed>|Traversable<int|string, mixed>
*/
/** @var array<int|string, mixed>|Traversable<int|string, mixed> */
private static iterable $data = [];

/**
* @var callable(mixed $datum, int|string|null $key=): bool|null
*/
/** @var callable(mixed $datum, int|string|null $key=): bool|null */
private $when;

/**
* @var callable(mixed $datum, int|string|null $key=): mixed
*/
/** @var callable(mixed $datum, int|string|null $key=): mixed */
private $transform;

private ?int $limit = null;
Expand All @@ -31,7 +25,7 @@ final class Collector
*/
public static function setUp(iterable $data): self
{
$self = new self();
$self = new self();
$self->$data = $data;

return $self;
Expand Down Expand Up @@ -72,7 +66,7 @@ public function getResults(): array
Assert::isCallable($this->when);
Assert::isCallable($this->transform);

$count = 0;
$count = 0;
$collectedData = [];

foreach ($this->data as $key => $datum) {
Expand Down

0 comments on commit 86af821

Please sign in to comment.