From 961f5b646ea70bf8c426dce5a357cffba22ed2ef Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 30 Aug 2020 19:38:38 +0200 Subject: [PATCH] Remove duplicated information. --- src/Operation/Append.php | 3 +-- src/Operation/Apply.php | 3 +-- src/Operation/Associate.php | 3 +-- src/Operation/Cache.php | 3 +-- src/Operation/Chunk.php | 3 +-- src/Operation/Collapse.php | 3 +-- src/Operation/Column.php | 3 +-- src/Operation/Combinate.php | 3 +-- src/Operation/Combine.php | 3 +-- src/Operation/Compact.php | 3 +-- src/Operation/Compose.php | 3 +-- src/Operation/Contains.php | 3 +-- src/Operation/Cycle.php | 3 +-- src/Operation/Diff.php | 3 +-- src/Operation/DiffKeys.php | 3 +-- src/Operation/Distinct.php | 3 +-- src/Operation/Explode.php | 3 +-- src/Operation/Falsy.php | 3 +-- src/Operation/Filter.php | 3 +-- src/Operation/First.php | 3 +-- src/Operation/Flatten.php | 3 +-- src/Operation/Flip.php | 3 +-- src/Operation/FoldLeft.php | 3 +-- src/Operation/FoldRight.php | 3 +-- src/Operation/Forget.php | 3 +-- src/Operation/Frequency.php | 3 +-- src/Operation/Get.php | 3 +-- src/Operation/Group.php | 3 +-- src/Operation/Has.php | 3 +-- src/Operation/Head.php | 3 +-- src/Operation/IfThenElse.php | 3 +-- src/Operation/Implode.php | 3 +-- src/Operation/Intersect.php | 3 +-- src/Operation/IntersectKeys.php | 3 +-- src/Operation/Intersperse.php | 3 +-- src/Operation/Iterate.php | 3 +-- src/Operation/Keys.php | 3 +-- src/Operation/Last.php | 3 +-- src/Operation/Limit.php | 3 +-- src/Operation/Loop.php | 3 +-- src/Operation/Map.php | 3 +-- src/Operation/Merge.php | 3 +-- src/Operation/Normalize.php | 3 +-- src/Operation/Nth.php | 3 +-- src/Operation/Nullsy.php | 3 +-- src/Operation/Only.php | 3 +-- src/Operation/Pack.php | 3 +-- src/Operation/Pad.php | 3 +-- src/Operation/Pair.php | 3 +-- src/Operation/Permutate.php | 3 +-- src/Operation/Pluck.php | 3 +-- src/Operation/Prepend.php | 3 +-- src/Operation/Product.php | 3 +-- src/Operation/RSample.php | 3 +-- src/Operation/Random.php | 3 +-- src/Operation/Range.php | 3 +-- src/Operation/Reduce.php | 3 +-- src/Operation/Reduction.php | 3 +-- src/Operation/Reverse.php | 3 +-- src/Operation/Scale.php | 3 +-- src/Operation/Shuffle.php | 3 +-- src/Operation/Since.php | 3 +-- src/Operation/Skip.php | 3 +-- src/Operation/Slice.php | 3 +-- src/Operation/Sort.php | 2 +- src/Operation/Split.php | 3 +-- src/Operation/Tail.php | 3 +-- src/Operation/Times.php | 3 +-- src/Operation/Transpose.php | 3 +-- src/Operation/Truthy.php | 3 +-- src/Operation/Unpack.php | 3 +-- src/Operation/Unpair.php | 3 +-- src/Operation/Until.php | 3 +-- src/Operation/Unwrap.php | 3 +-- src/Operation/Window.php | 3 +-- src/Operation/Wrap.php | 3 +-- src/Operation/Zip.php | 3 +-- 77 files changed, 77 insertions(+), 153 deletions(-) diff --git a/src/Operation/Append.php b/src/Operation/Append.php index 16aa1e261..e3b7d9ca5 100644 --- a/src/Operation/Append.php +++ b/src/Operation/Append.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Append extends AbstractOperation implements Operation +final class Append extends AbstractOperation { /** * @psalm-return Closure(T...): Closure(Iterator): Generator diff --git a/src/Operation/Apply.php b/src/Operation/Apply.php index e4bf5c5d7..1740eb395 100644 --- a/src/Operation/Apply.php +++ b/src/Operation/Apply.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Apply extends AbstractOperation implements Operation +final class Apply extends AbstractOperation { /** * @psalm-return Closure((callable(T, TKey):(bool))...): Closure(Iterator): Generator diff --git a/src/Operation/Associate.php b/src/Operation/Associate.php index 10b02fa89..d49475d0a 100644 --- a/src/Operation/Associate.php +++ b/src/Operation/Associate.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Associate extends AbstractOperation implements Operation +final class Associate extends AbstractOperation { /** * @psalm-return Closure(null|callable(TKey, T):(TKey)): Closure(null|callable(TKey, T):(T)): Generator diff --git a/src/Operation/Cache.php b/src/Operation/Cache.php index 85f0358da..eced017b4 100644 --- a/src/Operation/Cache.php +++ b/src/Operation/Cache.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use loophp\collection\Iterator\CacheIterator; use Psr\Cache\CacheItemPoolInterface; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Cache extends AbstractOperation implements Operation +final class Cache extends AbstractOperation { /** * @psalm-return Closure(CacheItemPoolInterface): Closure(Iterator): Generator diff --git a/src/Operation/Chunk.php b/src/Operation/Chunk.php index 002ff7a81..0f6b535f9 100644 --- a/src/Operation/Chunk.php +++ b/src/Operation/Chunk.php @@ -8,7 +8,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function count; @@ -17,7 +16,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Chunk extends AbstractOperation implements Operation +final class Chunk extends AbstractOperation { /** * @psalm-return Closure(int...): Closure(Iterator): Generator> diff --git a/src/Operation/Collapse.php b/src/Operation/Collapse.php index 89495e02c..4c590c327 100644 --- a/src/Operation/Collapse.php +++ b/src/Operation/Collapse.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Collapse extends AbstractOperation implements Operation +final class Collapse extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Column.php b/src/Operation/Column.php index d6451864a..ebf4f8603 100644 --- a/src/Operation/Column.php +++ b/src/Operation/Column.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Column extends AbstractOperation implements Operation +final class Column extends AbstractOperation { /** * @psalm-return Closure(Iterator, array-key):(Generator>) diff --git a/src/Operation/Combinate.php b/src/Operation/Combinate.php index 815bb9943..b9a1ccb4f 100644 --- a/src/Operation/Combinate.php +++ b/src/Operation/Combinate.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function array_slice; use function count; @@ -17,7 +16,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Combinate extends AbstractOperation implements Operation +final class Combinate extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Combine.php b/src/Operation/Combine.php index 214ae4b5c..a02bd0e81 100644 --- a/src/Operation/Combine.php +++ b/src/Operation/Combine.php @@ -8,7 +8,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use const E_USER_WARNING; @@ -17,7 +16,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Combine extends AbstractOperation implements Operation +final class Combine extends AbstractOperation { /** * @return Closure(T...): Closure(Iterator): Generator diff --git a/src/Operation/Compact.php b/src/Operation/Compact.php index fb25ef576..3a80b26b3 100644 --- a/src/Operation/Compact.php +++ b/src/Operation/Compact.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function in_array; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Compact extends AbstractOperation implements Operation +final class Compact extends AbstractOperation { /** * @psalm-return Closure(T...): Closure(Iterator): Generator diff --git a/src/Operation/Compose.php b/src/Operation/Compose.php index b8887f7c8..7960e459e 100644 --- a/src/Operation/Compose.php +++ b/src/Operation/Compose.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Compose extends AbstractOperation implements Operation +final class Compose extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/Contains.php b/src/Operation/Contains.php index 6cd1d10cd..e2fc4ce42 100644 --- a/src/Operation/Contains.php +++ b/src/Operation/Contains.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Contains extends AbstractOperation implements Operation +final class Contains extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Cycle.php b/src/Operation/Cycle.php index 7a707c9e2..cff5226d2 100644 --- a/src/Operation/Cycle.php +++ b/src/Operation/Cycle.php @@ -9,14 +9,13 @@ use InfiniteIterator; use Iterator; use LimitIterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Cycle extends AbstractOperation implements Operation +final class Cycle extends AbstractOperation { /** * @psalm-return Closure(int): Closure(Iterator): Generator diff --git a/src/Operation/Diff.php b/src/Operation/Diff.php index cdd147f3f..1f1786f80 100644 --- a/src/Operation/Diff.php +++ b/src/Operation/Diff.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function in_array; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Diff extends AbstractOperation implements Operation +final class Diff extends AbstractOperation { /** * @psalm-return Closure(T...): Closure(Iterator): Generator diff --git a/src/Operation/DiffKeys.php b/src/Operation/DiffKeys.php index 096a3b1fe..d86fa275d 100644 --- a/src/Operation/DiffKeys.php +++ b/src/Operation/DiffKeys.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function in_array; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class DiffKeys extends AbstractOperation implements Operation +final class DiffKeys extends AbstractOperation { /** * @psalm-return Closure(TKey...): Closure(Iterator): Generator diff --git a/src/Operation/Distinct.php b/src/Operation/Distinct.php index 0d9b1d38d..695f2d248 100644 --- a/src/Operation/Distinct.php +++ b/src/Operation/Distinct.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function in_array; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Distinct extends AbstractOperation implements Operation +final class Distinct extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Explode.php b/src/Operation/Explode.php index 1f58eb7d6..ad44e09cb 100644 --- a/src/Operation/Explode.php +++ b/src/Operation/Explode.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Explode extends AbstractOperation implements Operation +final class Explode extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Falsy.php b/src/Operation/Falsy.php index a8d3d0fbe..e6475ea03 100644 --- a/src/Operation/Falsy.php +++ b/src/Operation/Falsy.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Falsy extends AbstractOperation implements Operation +final class Falsy extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Filter.php b/src/Operation/Filter.php index baea1c623..aec60267f 100644 --- a/src/Operation/Filter.php +++ b/src/Operation/Filter.php @@ -8,14 +8,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Filter extends AbstractOperation implements Operation +final class Filter extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/First.php b/src/Operation/First.php index 33bf3da64..5d933eb7b 100644 --- a/src/Operation/First.php +++ b/src/Operation/First.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class First extends AbstractOperation implements Operation +final class First extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Flatten.php b/src/Operation/Flatten.php index d6eb7b63a..c7b2028ef 100644 --- a/src/Operation/Flatten.php +++ b/src/Operation/Flatten.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use loophp\collection\Iterator\IterableIterator; /** @@ -15,7 +14,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Flatten extends AbstractOperation implements Operation +final class Flatten extends AbstractOperation { /** * @psalm-return Closure(int): Closure(Iterator): Generator diff --git a/src/Operation/Flip.php b/src/Operation/Flip.php index f4fee5420..12b92d164 100644 --- a/src/Operation/Flip.php +++ b/src/Operation/Flip.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template T * @psalm-template T of array-key */ -final class Flip extends AbstractOperation implements Operation +final class Flip extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/FoldLeft.php b/src/Operation/FoldLeft.php index 2af8b323a..fd01dfe99 100644 --- a/src/Operation/FoldLeft.php +++ b/src/Operation/FoldLeft.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class FoldLeft extends AbstractOperation implements Operation +final class FoldLeft extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/FoldRight.php b/src/Operation/FoldRight.php index f09a4f381..75f9b6f4d 100644 --- a/src/Operation/FoldRight.php +++ b/src/Operation/FoldRight.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class FoldRight extends AbstractOperation implements Operation +final class FoldRight extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/Forget.php b/src/Operation/Forget.php index 1268f4054..74fc34497 100644 --- a/src/Operation/Forget.php +++ b/src/Operation/Forget.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function array_key_exists; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Forget extends AbstractOperation implements Operation +final class Forget extends AbstractOperation { /** * @psalm-return Closure(TKey...): Closure(Iterator): Generator diff --git a/src/Operation/Frequency.php b/src/Operation/Frequency.php index 0daed9289..b0b0be849 100644 --- a/src/Operation/Frequency.php +++ b/src/Operation/Frequency.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Frequency extends AbstractOperation implements Operation +final class Frequency extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Get.php b/src/Operation/Get.php index 59579f0b0..d3a9696e0 100644 --- a/src/Operation/Get.php +++ b/src/Operation/Get.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Get extends AbstractOperation implements Operation +final class Get extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Group.php b/src/Operation/Group.php index cdae76aea..933610817 100644 --- a/src/Operation/Group.php +++ b/src/Operation/Group.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Group extends AbstractOperation implements Operation +final class Group extends AbstractOperation { /** * @psalm-return Closure(null|callable(TKey, T):(TKey)): Closure(Iterator): Generator> diff --git a/src/Operation/Has.php b/src/Operation/Has.php index 519261cae..ef54e49a5 100644 --- a/src/Operation/Has.php +++ b/src/Operation/Has.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Has extends AbstractOperation implements Operation +final class Has extends AbstractOperation { /** * @psalm-return Closure(callable(TKey, T):(bool)): Closure(Iterator): bool diff --git a/src/Operation/Head.php b/src/Operation/Head.php index bef5ef49b..88e9a0456 100644 --- a/src/Operation/Head.php +++ b/src/Operation/Head.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Head extends AbstractOperation implements Operation +final class Head extends AbstractOperation { /** * @psalm-return Closure(Iterator): (Generator) diff --git a/src/Operation/IfThenElse.php b/src/Operation/IfThenElse.php index eb8e70cfb..a576bda63 100644 --- a/src/Operation/IfThenElse.php +++ b/src/Operation/IfThenElse.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class IfThenElse extends AbstractOperation implements Operation +final class IfThenElse extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/Implode.php b/src/Operation/Implode.php index 4a1d830a4..018c8173e 100644 --- a/src/Operation/Implode.php +++ b/src/Operation/Implode.php @@ -8,14 +8,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Implode extends AbstractOperation implements Operation +final class Implode extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Intersect.php b/src/Operation/Intersect.php index 38e173682..c6bba2bbb 100644 --- a/src/Operation/Intersect.php +++ b/src/Operation/Intersect.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function in_array; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Intersect extends AbstractOperation implements Operation +final class Intersect extends AbstractOperation { /** * @psalm-return Closure(T...): Closure(Iterator): Generator diff --git a/src/Operation/IntersectKeys.php b/src/Operation/IntersectKeys.php index 7ef16770c..7399a1490 100644 --- a/src/Operation/IntersectKeys.php +++ b/src/Operation/IntersectKeys.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function in_array; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class IntersectKeys extends AbstractOperation implements Operation +final class IntersectKeys extends AbstractOperation { /** * @psalm-return Closure(TKey...): Closure(Iterator): Generator diff --git a/src/Operation/Intersperse.php b/src/Operation/Intersperse.php index 86a4b2c88..4976ae255 100644 --- a/src/Operation/Intersperse.php +++ b/src/Operation/Intersperse.php @@ -8,14 +8,13 @@ use Generator; use InvalidArgumentException; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Intersperse extends AbstractOperation implements Operation +final class Intersperse extends AbstractOperation { /** * @psalm-return Closure(T): Closure(int): Closure(int): Closure(Iterator): Generator diff --git a/src/Operation/Iterate.php b/src/Operation/Iterate.php index 3bed2512c..6d12293cb 100644 --- a/src/Operation/Iterate.php +++ b/src/Operation/Iterate.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Iterate extends AbstractOperation implements Operation +final class Iterate extends AbstractOperation { /** * @psalm-return Closure(callable(T...):(array)): Closure(T...): Generator diff --git a/src/Operation/Keys.php b/src/Operation/Keys.php index 32b3ae5ba..0adb08b57 100644 --- a/src/Operation/Keys.php +++ b/src/Operation/Keys.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Keys extends AbstractOperation implements Operation +final class Keys extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Last.php b/src/Operation/Last.php index 193359e2f..6aa54034d 100644 --- a/src/Operation/Last.php +++ b/src/Operation/Last.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Last extends AbstractOperation implements Operation +final class Last extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Limit.php b/src/Operation/Limit.php index 175dec154..640a7fe9a 100644 --- a/src/Operation/Limit.php +++ b/src/Operation/Limit.php @@ -8,14 +8,13 @@ use Generator; use Iterator; use LimitIterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Limit extends AbstractOperation implements Operation +final class Limit extends AbstractOperation { /** * @psalm-return Closure(int): Closure(int=): Closure(Iterator): Generator diff --git a/src/Operation/Loop.php b/src/Operation/Loop.php index 04cef3e13..fd106e03c 100644 --- a/src/Operation/Loop.php +++ b/src/Operation/Loop.php @@ -8,14 +8,13 @@ use Generator; use InfiniteIterator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Loop extends AbstractOperation implements Operation +final class Loop extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Map.php b/src/Operation/Map.php index e8f0245f9..fcd48e165 100644 --- a/src/Operation/Map.php +++ b/src/Operation/Map.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Map extends AbstractOperation implements Operation +final class Map extends AbstractOperation { /** * @psalm-return Closure((callable(T, TKey): T)...): Closure(Iterator): Generator diff --git a/src/Operation/Merge.php b/src/Operation/Merge.php index 85d7f7d1e..b445514b1 100644 --- a/src/Operation/Merge.php +++ b/src/Operation/Merge.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Merge extends AbstractOperation implements Operation +final class Merge extends AbstractOperation { /** * @psalm-return Closure(iterable...): Closure(Iterator): Generator diff --git a/src/Operation/Normalize.php b/src/Operation/Normalize.php index 1162cd978..194d4a2d9 100644 --- a/src/Operation/Normalize.php +++ b/src/Operation/Normalize.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Normalize extends AbstractOperation implements Operation +final class Normalize extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Nth.php b/src/Operation/Nth.php index 7c27e8dcc..91faf73f9 100644 --- a/src/Operation/Nth.php +++ b/src/Operation/Nth.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Nth extends AbstractOperation implements Operation +final class Nth extends AbstractOperation { /** * @psalm-return Closure(int): Closure(int): Closure(Iterator): Generator diff --git a/src/Operation/Nullsy.php b/src/Operation/Nullsy.php index c4e45f385..34a817d58 100644 --- a/src/Operation/Nullsy.php +++ b/src/Operation/Nullsy.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Nullsy extends AbstractOperation implements Operation +final class Nullsy extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Only.php b/src/Operation/Only.php index 58d83d32a..7a03f61e1 100644 --- a/src/Operation/Only.php +++ b/src/Operation/Only.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use function array_key_exists; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Only extends AbstractOperation implements Operation +final class Only extends AbstractOperation { /** * @psalm-return Closure(TKey...): Closure(Iterator): Generator diff --git a/src/Operation/Pack.php b/src/Operation/Pack.php index 965fd0997..baa43d571 100644 --- a/src/Operation/Pack.php +++ b/src/Operation/Pack.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Pack extends AbstractOperation implements Operation +final class Pack extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Pad.php b/src/Operation/Pad.php index 6bd7df8f9..87bb2947f 100644 --- a/src/Operation/Pad.php +++ b/src/Operation/Pad.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Pad extends AbstractOperation implements Operation +final class Pad extends AbstractOperation { /** * @return Closure(int): Closure(T): Closure(Iterator): Generator diff --git a/src/Operation/Pair.php b/src/Operation/Pair.php index 96ecb52f2..28ad75695 100644 --- a/src/Operation/Pair.php +++ b/src/Operation/Pair.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Pair extends AbstractOperation implements Operation +final class Pair extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Permutate.php b/src/Operation/Permutate.php index 4e1eafd14..48c60818e 100644 --- a/src/Operation/Permutate.php +++ b/src/Operation/Permutate.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Permutate extends AbstractOperation implements Operation +final class Permutate extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Pluck.php b/src/Operation/Pluck.php index a3e675b0e..ff5393828 100644 --- a/src/Operation/Pluck.php +++ b/src/Operation/Pluck.php @@ -10,7 +10,6 @@ use Generator; use Iterator; use loophp\collection\Contract\Collection; -use loophp\collection\Contract\Operation; use ReflectionClass; use function array_key_exists; @@ -23,7 +22,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Pluck extends AbstractOperation implements Operation +final class Pluck extends AbstractOperation { /** * @psalm-return Closure(T): Closure(T): Closure(Iterator): Generator diff --git a/src/Operation/Prepend.php b/src/Operation/Prepend.php index 8db15f4c1..139cfd315 100644 --- a/src/Operation/Prepend.php +++ b/src/Operation/Prepend.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Prepend extends AbstractOperation implements Operation +final class Prepend extends AbstractOperation { /** * @psalm-return Closure(T...): Closure(Iterator): Generator diff --git a/src/Operation/Product.php b/src/Operation/Product.php index e4eb970e1..f465ef118 100644 --- a/src/Operation/Product.php +++ b/src/Operation/Product.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use loophp\collection\Iterator\IterableIterator; use function count; @@ -17,7 +16,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Product extends AbstractOperation implements Operation +final class Product extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/RSample.php b/src/Operation/RSample.php index 47cc70027..072488ff6 100644 --- a/src/Operation/RSample.php +++ b/src/Operation/RSample.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class RSample extends AbstractOperation implements Operation +final class RSample extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Random.php b/src/Operation/Random.php index 61a42f4c0..7bc9791af 100644 --- a/src/Operation/Random.php +++ b/src/Operation/Random.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Random extends AbstractOperation implements Operation +final class Random extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Range.php b/src/Operation/Range.php index 11798d9d3..552fc90f2 100644 --- a/src/Operation/Range.php +++ b/src/Operation/Range.php @@ -7,11 +7,10 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use const INF; -final class Range extends AbstractOperation implements Operation +final class Range extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Reduce.php b/src/Operation/Reduce.php index 0aaa16b42..39533c63d 100644 --- a/src/Operation/Reduce.php +++ b/src/Operation/Reduce.php @@ -6,14 +6,13 @@ use Closure; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Reduce extends AbstractOperation implements Operation +final class Reduce extends AbstractOperation { /** * @psalm-param \Iterator $collection diff --git a/src/Operation/Reduction.php b/src/Operation/Reduction.php index 0250a9e05..4e44bcd3e 100644 --- a/src/Operation/Reduction.php +++ b/src/Operation/Reduction.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Reduction extends AbstractOperation implements Operation +final class Reduction extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/Reverse.php b/src/Operation/Reverse.php index 44990a2c3..2884aef00 100644 --- a/src/Operation/Reverse.php +++ b/src/Operation/Reverse.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Reverse extends AbstractOperation implements Operation +final class Reverse extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Scale.php b/src/Operation/Scale.php index 33fc60484..b7b10d5d6 100644 --- a/src/Operation/Scale.php +++ b/src/Operation/Scale.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use const INF; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Scale extends AbstractOperation implements Operation +final class Scale extends AbstractOperation { // phpcs:disable /** diff --git a/src/Operation/Shuffle.php b/src/Operation/Shuffle.php index cfe1f4d19..1ae1d0a56 100644 --- a/src/Operation/Shuffle.php +++ b/src/Operation/Shuffle.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Shuffle extends AbstractOperation implements Operation +final class Shuffle extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Since.php b/src/Operation/Since.php index 18303c754..d67c7c1e6 100644 --- a/src/Operation/Since.php +++ b/src/Operation/Since.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Since extends AbstractOperation implements Operation +final class Since extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Skip.php b/src/Operation/Skip.php index 873d9af34..f3c9fbac5 100644 --- a/src/Operation/Skip.php +++ b/src/Operation/Skip.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Skip extends AbstractOperation implements Operation +final class Skip extends AbstractOperation { /** * @psalm-return Closure(int...): Closure(Iterator): Generator diff --git a/src/Operation/Slice.php b/src/Operation/Slice.php index 0dc46411a..113ff8335 100644 --- a/src/Operation/Slice.php +++ b/src/Operation/Slice.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Slice extends AbstractOperation implements Operation +final class Slice extends AbstractOperation { /** * @psalm-return Closure(int): Closure(int|null): Generator diff --git a/src/Operation/Sort.php b/src/Operation/Sort.php index 35ebeb7d1..ed9ce87ec 100644 --- a/src/Operation/Sort.php +++ b/src/Operation/Sort.php @@ -16,7 +16,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Sort extends AbstractOperation implements Operation +final class Sort extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Split.php b/src/Operation/Split.php index 2ec57e485..2647a46c4 100644 --- a/src/Operation/Split.php +++ b/src/Operation/Split.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Split extends AbstractOperation implements Operation +final class Split extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Tail.php b/src/Operation/Tail.php index 2efc69972..266281194 100644 --- a/src/Operation/Tail.php +++ b/src/Operation/Tail.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Tail extends AbstractOperation implements Operation +final class Tail extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Times.php b/src/Operation/Times.php index bf4cd5d27..b1c4a8f8c 100644 --- a/src/Operation/Times.php +++ b/src/Operation/Times.php @@ -8,14 +8,13 @@ use Generator; use InvalidArgumentException; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Times extends AbstractOperation implements Operation +final class Times extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Transpose.php b/src/Operation/Transpose.php index 219b38c9a..2943766c9 100644 --- a/src/Operation/Transpose.php +++ b/src/Operation/Transpose.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use loophp\collection\Iterator\IterableIterator; use MultipleIterator; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Transpose extends AbstractOperation implements Operation +final class Transpose extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator> diff --git a/src/Operation/Truthy.php b/src/Operation/Truthy.php index 2f7020f69..18b0a1af6 100644 --- a/src/Operation/Truthy.php +++ b/src/Operation/Truthy.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Truthy extends AbstractOperation implements Operation +final class Truthy extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Unpack.php b/src/Operation/Unpack.php index e2dcab460..40aa3e400 100644 --- a/src/Operation/Unpack.php +++ b/src/Operation/Unpack.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use loophp\collection\Iterator\IterableIterator; /** @@ -15,7 +14,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Unpack extends AbstractOperation implements Operation +final class Unpack extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Unpair.php b/src/Operation/Unpair.php index 968408e15..ead83cefd 100644 --- a/src/Operation/Unpair.php +++ b/src/Operation/Unpair.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Unpair extends AbstractOperation implements Operation +final class Unpair extends AbstractOperation { /** * @psalm-return Closure(Iterator): Generator diff --git a/src/Operation/Until.php b/src/Operation/Until.php index 9af366b9c..f38cb9d61 100644 --- a/src/Operation/Until.php +++ b/src/Operation/Until.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Until extends AbstractOperation implements Operation +final class Until extends AbstractOperation { /** * @psalm-return Closure((callable(T, TKey):(bool))...): Closure(Iterator): Generator diff --git a/src/Operation/Unwrap.php b/src/Operation/Unwrap.php index 16af0fc79..5115a3c2e 100644 --- a/src/Operation/Unwrap.php +++ b/src/Operation/Unwrap.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Unwrap extends AbstractOperation implements Operation +final class Unwrap extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Window.php b/src/Operation/Window.php index 47e475c97..bcf351526 100644 --- a/src/Operation/Window.php +++ b/src/Operation/Window.php @@ -8,14 +8,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Window extends AbstractOperation implements Operation +final class Window extends AbstractOperation { /** * @psalm-return Closure(int...): Closure(Iterator): Generator> diff --git a/src/Operation/Wrap.php b/src/Operation/Wrap.php index d09eaf980..1384b9deb 100644 --- a/src/Operation/Wrap.php +++ b/src/Operation/Wrap.php @@ -7,14 +7,13 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; /** * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T */ -final class Wrap extends AbstractOperation implements Operation +final class Wrap extends AbstractOperation { public function __invoke(): Closure { diff --git a/src/Operation/Zip.php b/src/Operation/Zip.php index 489af2dd0..0a81e494e 100644 --- a/src/Operation/Zip.php +++ b/src/Operation/Zip.php @@ -7,7 +7,6 @@ use Closure; use Generator; use Iterator; -use loophp\collection\Contract\Operation; use loophp\collection\Iterator\IterableIterator; use MultipleIterator; @@ -16,7 +15,7 @@ * @psalm-template TKey of array-key * @psalm-template T */ -final class Zip extends AbstractOperation implements Operation +final class Zip extends AbstractOperation { public function __invoke(): Closure {