Skip to content

Commit 49d56b7

Browse files
committed
autofix code style
1 parent 0c810ab commit 49d56b7

29 files changed

+16
-188
lines changed

src/CachingIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/ChunkIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -25,9 +20,7 @@ final class ChunkIterableAggregate implements IteratorAggregate
2520
/**
2621
* @param iterable<TKey, T> $iterable
2722
*/
28-
public function __construct(private iterable $iterable, private int $chunkSize)
29-
{
30-
}
23+
public function __construct(private iterable $iterable, private int $chunkSize) {}
3124

3225
/**
3326
* @return Generator<int, list<T>>

src/ClosureIterator.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/ClosureIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/ConcatIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -25,9 +20,7 @@ final class ConcatIterableAggregate implements IteratorAggregate
2520
/**
2621
* @param iterable<mixed, iterable<TKey, T>> $iterables
2722
*/
28-
public function __construct(private iterable $iterables)
29-
{
30-
}
23+
public function __construct(private iterable $iterables) {}
3124

3225
/**
3326
* @return Generator<TKey, T>

src/Contract/PausableIteratorAggregateInterface.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators\Contract;

src/FilterIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -25,9 +20,7 @@ final class FilterIterableAggregate implements IteratorAggregate
2520
* @param iterable<TKey, T> $iterable
2621
* @param (Closure(T, TKey, iterable<TKey, T>): bool) $predicate
2722
*/
28-
public function __construct(private iterable $iterable, private Closure $predicate)
29-
{
30-
}
23+
public function __construct(private iterable $iterable, private Closure $predicate) {}
3124

3225
/**
3326
* @return Generator<TKey, T>

src/InfiniteIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/InterruptableIterableIteratorAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -25,9 +20,7 @@ final class InterruptableIterableIteratorAggregate implements IteratorAggregate
2520
/**
2621
* @param iterable<TKey, T> $iterable
2722
*/
28-
public function __construct(private iterable $iterable)
29-
{
30-
}
23+
public function __construct(private iterable $iterable) {}
3124

3225
/**
3326
* @return Generator<Generator<TKey, T>, array{0: TKey, 1: T}>

src/IterableIterator.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/IterableIteratorAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -23,9 +18,7 @@ final class IterableIteratorAggregate implements IteratorAggregate
2318
/**
2419
* @param iterable<TKey, T> $iterable
2520
*/
26-
public function __construct(private iterable $iterable)
27-
{
28-
}
21+
public function __construct(private iterable $iterable) {}
2922

3023
/**
3124
* @return Generator<TKey, T>

src/LimitIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -24,9 +19,7 @@ final class LimitIterableAggregate implements IteratorAggregate
2419
/**
2520
* @param iterable<TKey, T> $iterable
2621
*/
27-
public function __construct(private iterable $iterable, private int $offset = 0, private int $limit = -1)
28-
{
29-
}
22+
public function __construct(private iterable $iterable, private int $offset = 0, private int $limit = -1) {}
3023

3124
/**
3225
* @return Generator<TKey, T>

src/MapIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -26,9 +21,7 @@ final class MapIterableAggregate implements IteratorAggregate
2621
* @param iterable<TKey, T> $iterable
2722
* @param (Closure(T, TKey, iterable<TKey, T>): W) $closure
2823
*/
29-
public function __construct(private iterable $iterable, private Closure $closure)
30-
{
31-
}
24+
public function __construct(private iterable $iterable, private Closure $closure) {}
3225

3326
/**
3427
* @return Generator<TKey, W>

src/MersenneTwisterRNGIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/MultipleIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -25,9 +20,7 @@ final class MultipleIterableAggregate implements IteratorAggregate
2520
* @param iterable<array-key, iterable<TKey, T>> $iterables
2621
* @param (0|1|2|3) $flags
2722
*/
28-
public function __construct(private iterable $iterables, private int $flags = MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC)
29-
{
30-
}
23+
public function __construct(private iterable $iterables, private int $flags = MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC) {}
3124

3225
/**
3326
* @return Generator<array<int, TKey|null>, array<int, T|null>>

src/NormalizeIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -23,9 +18,7 @@ final class NormalizeIterableAggregate implements IteratorAggregate
2318
/**
2419
* @param iterable<TKey, T> $iterable
2520
*/
26-
public function __construct(private iterable $iterable)
27-
{
28-
}
21+
public function __construct(private iterable $iterable) {}
2922

3023
/**
3124
* @return Generator<int, T>

src/PackIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -23,9 +18,7 @@ final class PackIterableAggregate implements IteratorAggregate
2318
/**
2419
* @param iterable<TKey, T> $iterable
2520
*/
26-
public function __construct(private iterable $iterable)
27-
{
28-
}
21+
public function __construct(private iterable $iterable) {}
2922

3023
/**
3124
* @return Generator<int, array{0: TKey, 1: T}>

src/PausableIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/RandomIterableAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/ReduceIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -27,9 +22,7 @@ final class ReduceIterableAggregate implements IteratorAggregate
2722
* @param (Closure(W, T, TKey, iterable<TKey, T>): W) $closure
2823
* @param W $initial
2924
*/
30-
public function __construct(private iterable $iterable, private Closure $closure, private mixed $initial)
31-
{
32-
}
25+
public function __construct(private iterable $iterable, private Closure $closure, private mixed $initial) {}
3326

3427
/**
3528
* @return Generator<int, W>

src/ReductionIterableAggregate.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;
@@ -27,9 +22,7 @@ final class ReductionIterableAggregate implements IteratorAggregate
2722
* @param (Closure(W, T, TKey, iterable<TKey, T>): W) $closure
2823
* @param W $initial
2924
*/
30-
public function __construct(private iterable $iterable, private Closure $closure, private mixed $initial)
31-
{
32-
}
25+
public function __construct(private iterable $iterable, private Closure $closure, private mixed $initial) {}
3326

3427
/**
3528
* @return Generator<TKey|int, W>

src/ResourceIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

src/SimpleCachingIteratorAggregate.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* For the full copyright and license information, please view
5-
* the LICENSE file that was distributed with this source code.
6-
*/
7-
83
declare(strict_types=1);
94

105
namespace loophp\iterators;

0 commit comments

Comments
 (0)