From 3366d56fba424e4b3285d504c4f6ca571ea52c2c Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Thu, 22 Feb 2024 14:48:44 -0600 Subject: [PATCH] Fixed code smell related to unusued var --- src/lib/laravel/Collection.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/laravel/Collection.php b/src/lib/laravel/Collection.php index 23ab85b..a745a2e 100644 --- a/src/lib/laravel/Collection.php +++ b/src/lib/laravel/Collection.php @@ -8,12 +8,11 @@ class Collection extends LaravelCollection { - - public function whereContainsIn($keys, $value, $strict = false) + public function whereContainsIn($keys, $value) { $keys = $this->getArrayableItems($keys); - return $this->filter(function ($item) use ($keys, $value, $strict) { + return $this->filter(function ($item) use ($keys, $value) { // Handle the case where the data is an array of items for ($i = 0; $i < count($keys); $i++) { $item = data_get($item, $keys[$i]);