@@ -92,7 +92,7 @@ |
||
| 92 | 92 | { |
| 93 | 93 | $offset = $searchFilterRequest->getOffset(); |
| 94 | 94 | $numberOfItems = $searchFilterRequest->getNumberOfItems(); |
| 95 | - return new LimitIterator(new RewindableGenerator(function () { |
|
| 95 | + return new LimitIterator(new RewindableGenerator(function() { |
|
| 96 | 96 | return $this->iterate(); |
| 97 | 97 | }), $offset, $numberOfItems); |
| 98 | 98 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Retrieves instances of api resource App. This is always one record with id 'name'. |
| 11 | 11 | */ |
| 12 | -class AppRetriever implements ApiResourceRetrieverInterface{ |
|
| 12 | +class AppRetriever implements ApiResourceRetrieverInterface { |
|
| 13 | 13 | /** |
| 14 | 14 | * @var string |
| 15 | 15 | */ |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $count = 0; |
| 23 | 23 | $offset = $searchFilterRequest->getOffset(); |
| 24 | 24 | $max = $offset + $searchFilterRequest->getNumberOfItems(); |
| 25 | - return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) { |
|
| 25 | + return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) { |
|
| 26 | 26 | if ($count >= $max) { |
| 27 | 27 | return false; |
| 28 | 28 | } |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | } |
| 112 | 112 | $ids = array_slice($cacheItem->get(), $offset, $numberOfItems); |
| 113 | 113 | |
| 114 | - return array_values(array_map(function ($id) use ($resourceClass, &$context) { |
|
| 114 | + return array_values(array_map(function($id) use ($resourceClass, &$context) { |
|
| 115 | 115 | return $this->retrieve($resourceClass, $id, $context); |
| 116 | 116 | }, $ids)); |
| 117 | 117 | } |