Skip to content

Commit 1442b14

Browse files
committed
Change a method name
1 parent 3a5066c commit 1442b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FilterGroup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function withFilters(Filter ...$filters): self
4747
return $this;
4848
}
4949

50-
private function sliceLongFilter(string $value): iterable
50+
private function sliceFilter(string $value): iterable
5151
{
5252
$iterator = new \ArrayIterator(explode(',', $value));
5353
while ($this->offset < iterator_count($iterator)) {
@@ -61,7 +61,7 @@ public function compileLongFilters(int $groupIndex = 0)
6161
{
6262
return array_merge(...array_map(fn (array $item, int $key) => [
6363
sprintf('searchCriteria[filterGroups][%s][filters][%s][field]', $groupIndex, $key) => $item['field'],
64-
sprintf('searchCriteria[filterGroups][%s][filters][%s][value]', $groupIndex, $key) => iterator_to_array($this->sliceLongFilter($item['value'])),
64+
sprintf('searchCriteria[filterGroups][%s][filters][%s][value]', $groupIndex, $key) => iterator_to_array($this->sliceFilter($item['value'])),
6565
sprintf('searchCriteria[filterGroups][%s][filters][%s][conditionType]', $groupIndex, $key) => $item['condition_type'],
6666
], $this->longFilters, array_keys($this->longFilters)));
6767
}

0 commit comments

Comments
 (0)