@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | PropertyAccessorInterface $accessor |
15 | 15 | ): Pagerfanta { |
16 | 16 | $paginator = new Pagerfanta(new ArrayAdapter( |
17 | - array_values(array_filter($input, function ($item) use ($searchFilterRequest, $accessor) { |
|
17 | + array_values(array_filter($input, function($item) use ($searchFilterRequest, $accessor) { |
|
18 | 18 | return self::filter($accessor, $item, $searchFilterRequest); |
19 | 19 | })) |
20 | 20 | )); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $count = 0; |
56 | 56 | $offset = $searchFilterRequest->getOffset(); |
57 | 57 | $max = $offset + $searchFilterRequest->getNumberOfItems(); |
58 | - return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) { |
|
58 | + return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) { |
|
59 | 59 | if ($count >= $max) { |
60 | 60 | return false; |
61 | 61 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | ); |
71 | 71 | |
72 | 72 | return array_map( |
73 | - function ($id) { |
|
73 | + function($id) { |
|
74 | 74 | return $this->dataLayer->retrieve($this->resourceClass, $id, $this->context); |
75 | 75 | }, |
76 | 76 | SearchFilterHelper::applySearchFilter($this->idList, $searchFilterRequest, $this->propertyAccessor) |
@@ -95,11 +95,11 @@ |
||
95 | 95 | */ |
96 | 96 | public function retrieveAll(string $resourceClass, array $context, SearchFilterRequest $searchFilterRequest): iterable |
97 | 97 | { |
98 | - $iterator = new RewindableGenerator(function () { |
|
98 | + $iterator = new RewindableGenerator(function() { |
|
99 | 99 | return $this->iterate(); |
100 | 100 | }); |
101 | 101 | if (array_key_exists('status', $searchFilterRequest->getSearches())) { |
102 | - $filter = function (Status $status) use ($searchFilterRequest) { |
|
102 | + $filter = function(Status $status) use ($searchFilterRequest) { |
|
103 | 103 | return $status->getStatus() === $searchFilterRequest->getSearches()['status']; |
104 | 104 | }; |
105 | 105 | $iterator = new CallbackFilterIterator( |