@@ -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( |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | ObjectAccessInterface $objectAccess |
15 | 15 | ): Pagerfanta { |
16 | 16 | $paginator = new Pagerfanta(new ArrayAdapter( |
17 | - array_values(array_filter($input, function ($item) use ($searchFilterRequest, $objectAccess) { |
|
17 | + array_values(array_filter($input, function($item) use ($searchFilterRequest, $objectAccess) { |
|
18 | 18 | return self::filter($objectAccess, $item, $searchFilterRequest); |
19 | 19 | })) |
20 | 20 | )); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $count = 0; |
64 | 64 | $offset = $searchFilterRequest->getOffset(); |
65 | 65 | $max = $offset + $searchFilterRequest->getNumberOfItems(); |
66 | - return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) { |
|
66 | + return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) { |
|
67 | 67 | if ($count >= $max) { |
68 | 68 | return false; |
69 | 69 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | if ($added) { |
63 | 63 | $document->components->headers['Count'] = new Header('number of results', ['schema' => new Schema(['type' => 'number', 'format' => 'int'])]); |
64 | - $document->components->headers['Url'] = new Header('pagination url', ['schema' => new Schema(['type' => 'string', 'format' => 'url']) ]); |
|
64 | + $document->components->headers['Url'] = new Header('pagination url', ['schema' => new Schema(['type' => 'string', 'format' => 'url'])]); |
|
65 | 65 | } |
66 | 66 | return $document; |
67 | 67 | } |