From 3d193b68ed5c7416d94530c5181578c3fa05cb20 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 31 Oct 2023 13:25:41 -0500 Subject: [PATCH] Fix PHPCS violations. --- includes/Checker/Check_Collection.php | 1 + includes/Checker/Default_Check_Collection.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Checker/Check_Collection.php b/includes/Checker/Check_Collection.php index f1874f4ba..78398e598 100644 --- a/includes/Checker/Check_Collection.php +++ b/includes/Checker/Check_Collection.php @@ -43,6 +43,7 @@ public function to_map(): array; * * @since n.e.x.t * + * @param array $check_slugs List of slugs to limit to only those. If empty, the same collection is returned. * @return Check_Collection New check collection, effectively a subset of this one. */ public function include( array $check_slugs ): Check_Collection; diff --git a/includes/Checker/Default_Check_Collection.php b/includes/Checker/Default_Check_Collection.php index f5765fbd3..b72ad0c6f 100644 --- a/includes/Checker/Default_Check_Collection.php +++ b/includes/Checker/Default_Check_Collection.php @@ -8,7 +8,6 @@ namespace WordPress\Plugin_Check\Checker; use ArrayIterator; -use Exception; use Traversable; /** @@ -75,6 +74,7 @@ public function to_map(): array { * * @since n.e.x.t * + * @param array $check_slugs List of slugs to limit to only those. If empty, the same collection is returned. * @return Check_Collection New check collection, effectively a subset of this one. */ public function include( array $check_slugs ): Check_Collection {