Skip to content

Commit

Permalink
chore: autofix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 18, 2024
1 parent 267dabe commit 21d6dc7
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 17 deletions.
2 changes: 0 additions & 2 deletions src/Operation/Combine.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ static function (array $keys): Closure {
$buildMultipleIterable =
/**
* @param iterable<TKey, T> $iterable
*
* @return Generator
*/
static fn (iterable $iterable): Generator => yield from new MultipleIterableAggregate([$keys, $iterable], MultipleIterator::MIT_NEED_ANY);

Expand Down
1 change: 0 additions & 1 deletion src/Operation/Entropy.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function __invoke(): Closure
(new Map())()(
/**
* @param T $_
* @param int $key
* @param Collection<TKey, T> $collection
*/
static fn (mixed $_, int $key, Collection $collection): float => $collection
Expand Down
3 changes: 0 additions & 3 deletions src/Operation/Implode.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ static function (string $glue): Closure {
(new Intersperse())()($glue)(1)(0),
(new Limit())()(-1)(1),
(new Reduce())()(
/**
* @param string|Stringable $item
*/
static fn (string $carry, string|Stringable $item): string => $carry .= (string) $item
)('')
);
Expand Down
2 changes: 0 additions & 2 deletions src/Operation/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public function __invoke(): Closure
{
$buildCachingIterator =
/**
* @param iterable<TKey, T> $iterable
*
* @return CachingIteratorAggregate<TKey, T>
*/
static fn (iterable $iterator): CachingIteratorAggregate => new CachingIteratorAggregate((new IterableIteratorAggregate($iterator))->getIterator());
Expand Down
7 changes: 1 addition & 6 deletions src/Operation/Scale.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,8 @@ static function (float|int $v) use ($lowerBound, $upperBound, $wantedLowerBound,
);

$filter = (new Filter())()(
/**
* @param float|int $item
*/
static fn (float|int $item): bool => $item > $lowerBound,
/**
* @param float|int $item
*/

static fn (float|int $item): bool => $item <= $upperBound
);

Expand Down
2 changes: 0 additions & 2 deletions src/Operation/Strict.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public function __invoke(): Closure
*/
static fn (?callable $callback = null): Closure =>
/**
* @param iterable<TKey, T> $iterable
*
* @return Generator<TKey, T>
*/
static fn (iterable $iterator): Generator => yield from new TypedIterableAggregate((new IterableIteratorAggregate($iterator))->getIterator(), $callback);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Traits/GenericCollectionProviders.php
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ public static function forgetOperationProvider()

public static function frequencyOperationProvider()
{
$object = new StdClass();
$object = new stdClass();
$input = ['1', '2', '3', null, '4', '2', null, '6', $object, $object];
$output = static function () use ($object): Generator {
yield 1 => '1';
Expand Down

0 comments on commit 21d6dc7

Please sign in to comment.