Skip to content

Commit 04b29ef

Browse files
committed
rename var
1 parent a386f4e commit 04b29ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Finder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ public static function rows(
129129
bool $preserveKey = false,
130130
?int $limit = null
131131
): array {
132-
$rows = [];
133-
$newKey = 0;
134-
$total = 0;
132+
$rows = [];
133+
$newKey = 0;
134+
$totalFound = 0;
135135

136136
foreach ($data as $key => $datum) {
137137
$isFound = $filter($datum, $key);
@@ -156,8 +156,8 @@ public static function rows(
156156
continue;
157157
}
158158

159-
++$total;
160-
if ($total === $limit) {
159+
++$totalFound;
160+
if ($totalFound === $limit) {
161161
break;
162162
}
163163
}

0 commit comments

Comments
 (0)