Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

Commit 8a036d4

Browse files
committed
(fix) renamed var as sonar suggested it
1 parent 8d1af77 commit 8a036d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FunctionalCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public function map(callable $func): FunctionalCollection
4747
*/
4848
public function filter(callable $predicate): FunctionalCollection
4949
{
50-
$values = $this->extract();
51-
foreach ($values as $key => &$entry) {
50+
$currentValueSet = $this->extract();
51+
foreach ($currentValueSet as $key => &$entry) {
5252
if (!$predicate($entry)) {
53-
unset($values[$key]);
53+
unset($currentValueSet[$key]);
5454
}
5555
}
56-
return new self(array_values($values));
56+
return new self(array_currentValueSet($values));
5757
}
5858

5959
/**

0 commit comments

Comments
 (0)