Skip to content

Commit

Permalink
cs: Autofix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 9, 2022
1 parent 5037520 commit 5298919
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/CachingIteratorAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final class CachingIteratorAggregate implements IteratorAggregate
* // TODO: Remove this when PSalm 5 is released.
*
* @psalm-var CachingIterator<int, array{0: TKey, 1: T}>
*
* @phpstan-var CachingIterator<int, array{0: TKey, 1: T}, Generator<int, array{0: TKey, 1: T}>>
*/
private CachingIterator $iterator;
Expand Down
4 changes: 2 additions & 2 deletions src/ClosureIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class ClosureIterator implements Iterator
{
/**
* @var callable(mixed ...$parameters): iterable<TKey, T>
* @var callable(mixed): iterable<TKey, T>
*/
private $callable;

Expand All @@ -37,7 +37,7 @@ final class ClosureIterator implements Iterator
private iterable $parameters;

/**
* @param callable(mixed ...$parameters): iterable<TKey, T> $callable
* @param callable(mixed): iterable<TKey, T> $callable
* @param iterable<int, mixed> $parameters
*/
public function __construct(callable $callable, iterable $parameters = [])
Expand Down
1 change: 1 addition & 0 deletions src/SimpleCachingIteratorAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ final class SimpleCachingIteratorAggregate implements IteratorAggregate
* // TODO: Remove this when PSalm 5 is released.
*
* @psalm-var CachingIterator<TKey, T>
*
* @phpstan-var CachingIterator<TKey, T, Iterator<TKey, T>>
*/
private CachingIterator $iterator;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/CachingIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class CachingIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ChunkIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class ChunkIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ClosureIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class ClosureIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ClosureIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class ClosureIteratorTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ConcatIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class ConcatIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/FilterIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class FilterIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/InfiniteIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class InfiniteIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/InterruptableIterableIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class InterruptableIterableIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/IterableIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class IterableIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/IterableIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class IterableIteratorTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/LimitIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class LimitIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/MapIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class MapIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/MersenneTwisterRNGIteratorAggregatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class MersenneTwisterRNGIteratorAggregatorTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/MultipleIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class MultipleIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/NormalizeIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class NormalizeIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/PackIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class PackIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/PackIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class PackIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/PausableIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class PausableIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/RandomIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class RandomIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ReductionIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class ReductionIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ResourceIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class ResourceIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/SimpleCachingIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class SimpleCachingIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/StringIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class StringIteratorAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/TypedIterableAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class TypedIterableAggregateTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/UniqueIterableAggregatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class UniqueIterableAggregatorTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/UnpackIteratorAggregateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\iterators
*/
final class UnpackIteratorAggregateTest extends TestCase
Expand Down

0 comments on commit 5298919

Please sign in to comment.