From bc6d61e95f375f5cc7303870592dc98ab1563ab8 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 11 Feb 2021 19:42:04 +0100 Subject: [PATCH] refactor: Remove obsolete PHPCS options. --- src/Operation/Associate.php | 1 - src/Operation/AsyncMap.php | 1 - src/Operation/DropWhile.php | 1 - src/Operation/Group.php | 2 -- src/Operation/Lines.php | 2 -- src/Operation/Map.php | 1 - src/Operation/Pluck.php | 1 - src/Operation/Product.php | 2 -- src/Operation/Reverse.php | 2 -- src/Operation/Since.php | 5 ++--- src/Operation/Split.php | 1 - src/Operation/TakeWhile.php | 1 - src/Operation/Times.php | 1 - src/Operation/Unlines.php | 2 -- src/Operation/Unpack.php | 2 -- src/Operation/Until.php | 1 - src/Operation/Unwords.php | 2 -- src/Operation/Unzip.php | 2 -- src/Operation/Words.php | 2 -- 19 files changed, 2 insertions(+), 30 deletions(-) diff --git a/src/Operation/Associate.php b/src/Operation/Associate.php index 0cc6c327b..f2af0995f 100644 --- a/src/Operation/Associate.php +++ b/src/Operation/Associate.php @@ -15,7 +15,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Associate extends AbstractOperation { diff --git a/src/Operation/AsyncMap.php b/src/Operation/AsyncMap.php index c71d566a0..35ba9c0f5 100644 --- a/src/Operation/AsyncMap.php +++ b/src/Operation/AsyncMap.php @@ -29,7 +29,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class AsyncMap extends AbstractOperation { diff --git a/src/Operation/DropWhile.php b/src/Operation/DropWhile.php index 1da66d709..0896a207e 100644 --- a/src/Operation/DropWhile.php +++ b/src/Operation/DropWhile.php @@ -14,7 +14,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class DropWhile extends AbstractOperation { diff --git a/src/Operation/Group.php b/src/Operation/Group.php index 27364abb9..7787a556b 100644 --- a/src/Operation/Group.php +++ b/src/Operation/Group.php @@ -12,8 +12,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Group extends AbstractOperation { diff --git a/src/Operation/Lines.php b/src/Operation/Lines.php index ecdde03c4..539c291cf 100644 --- a/src/Operation/Lines.php +++ b/src/Operation/Lines.php @@ -14,8 +14,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Lines extends AbstractOperation { diff --git a/src/Operation/Map.php b/src/Operation/Map.php index cdfcb91f2..fb6c8c6d3 100644 --- a/src/Operation/Map.php +++ b/src/Operation/Map.php @@ -14,7 +14,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Map extends AbstractOperation { diff --git a/src/Operation/Pluck.php b/src/Operation/Pluck.php index ccaceb19c..73f474714 100644 --- a/src/Operation/Pluck.php +++ b/src/Operation/Pluck.php @@ -23,7 +23,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Pluck extends AbstractOperation { diff --git a/src/Operation/Product.php b/src/Operation/Product.php index 08e6ca582..4416eefa9 100644 --- a/src/Operation/Product.php +++ b/src/Operation/Product.php @@ -14,8 +14,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Product extends AbstractOperation { diff --git a/src/Operation/Reverse.php b/src/Operation/Reverse.php index 119373594..d2ef61313 100644 --- a/src/Operation/Reverse.php +++ b/src/Operation/Reverse.php @@ -16,8 +16,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Reverse extends AbstractOperation { diff --git a/src/Operation/Since.php b/src/Operation/Since.php index c3d8e0deb..15a7714e5 100644 --- a/src/Operation/Since.php +++ b/src/Operation/Since.php @@ -14,18 +14,17 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Since extends AbstractOperation { /** - * @psalm-return Closure(callable(T , TKey ): bool ...):Closure (Iterator): Generator + * @psalm-return Closure(callable(T, TKey, Iterator):bool ...): Closure(Iterator): Generator */ public function __invoke(): Closure { return /** - * @psalm-param callable(T, TKey):bool ...$callbacks + * @psalm-param callable(T, TKey, Iterator):bool ...$callbacks * * @psalm-return Closure(Iterator): Generator */ diff --git a/src/Operation/Split.php b/src/Operation/Split.php index 7fd266c66..0ddc306fe 100644 --- a/src/Operation/Split.php +++ b/src/Operation/Split.php @@ -15,7 +15,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Split extends AbstractOperation { diff --git a/src/Operation/TakeWhile.php b/src/Operation/TakeWhile.php index c74633af4..d34f5ab79 100644 --- a/src/Operation/TakeWhile.php +++ b/src/Operation/TakeWhile.php @@ -14,7 +14,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class TakeWhile extends AbstractOperation { diff --git a/src/Operation/Times.php b/src/Operation/Times.php index 031dc0f06..25e6e93e0 100644 --- a/src/Operation/Times.php +++ b/src/Operation/Times.php @@ -15,7 +15,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Times extends AbstractOperation { diff --git a/src/Operation/Unlines.php b/src/Operation/Unlines.php index a48648bd4..29ad04b38 100644 --- a/src/Operation/Unlines.php +++ b/src/Operation/Unlines.php @@ -14,8 +14,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Unlines extends AbstractOperation { diff --git a/src/Operation/Unpack.php b/src/Operation/Unpack.php index 931f6b00c..9065336ed 100644 --- a/src/Operation/Unpack.php +++ b/src/Operation/Unpack.php @@ -13,8 +13,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Unpack extends AbstractOperation { diff --git a/src/Operation/Until.php b/src/Operation/Until.php index 53d2f573e..59517ad5f 100644 --- a/src/Operation/Until.php +++ b/src/Operation/Until.php @@ -14,7 +14,6 @@ * @psalm-template T * * phpcs:disable Generic.Files.LineLength.TooLong - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Until extends AbstractOperation { diff --git a/src/Operation/Unwords.php b/src/Operation/Unwords.php index 39d274714..3d4356cf3 100644 --- a/src/Operation/Unwords.php +++ b/src/Operation/Unwords.php @@ -12,8 +12,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Unwords extends AbstractOperation { diff --git a/src/Operation/Unzip.php b/src/Operation/Unzip.php index 09fc2e615..1ccd6d38b 100644 --- a/src/Operation/Unzip.php +++ b/src/Operation/Unzip.php @@ -12,8 +12,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Unzip extends AbstractOperation { diff --git a/src/Operation/Words.php b/src/Operation/Words.php index 3294fd366..c3173ef5a 100644 --- a/src/Operation/Words.php +++ b/src/Operation/Words.php @@ -12,8 +12,6 @@ * @psalm-template TKey * @psalm-template TKey of array-key * @psalm-template T - * - * phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact */ final class Words extends AbstractOperation {