Skip to content

Commit

Permalink
Fixed code smell related to unusued var
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdrosas87 committed Feb 22, 2024
1 parent 85b1615 commit 3366d56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/laravel/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 3366d56

Please sign in to comment.