@@ -95,7 +95,6 @@ discard block |
||
| 95 | 95 | private $chainableFormatRetriever; |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - |
|
| 99 | 98 | * @param object[] $plugins |
| 100 | 99 | * @param bool $debug |
| 101 | 100 | * @param string|null $cacheFolder |
@@ -343,7 +342,7 @@ discard block |
||
| 343 | 342 | return $document; |
| 344 | 343 | } |
| 345 | 344 | |
| 346 | - public function getObjectAccess(): ObjectAccessInterface |
|
| 345 | + public function getObjectAccess(): ObjectAccessInterface |
|
| 347 | 346 | { |
| 348 | 347 | $objectAccess = new ObjectAccess(); |
| 349 | 348 | $objectAccesses = $this->pluginContainer->getPluginsWithInterface(ObjectAccessProviderInterface::class); |
@@ -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 | } |
@@ -170,14 +170,14 @@ |
||
| 170 | 170 | [ |
| 171 | 171 | 'schema' => $validationErrorSchema, |
| 172 | 172 | ] |
| 173 | - ), |
|
| 174 | - 'application/xml' => new OASv3\MediaType( |
|
| 173 | + ), |
|
| 174 | + 'application/xml' => new OASv3\MediaType( |
|
| 175 | 175 | [ |
| 176 | 176 | 'schema' => $validationErrorSchema, |
| 177 | 177 | ] |
| 178 | - ), |
|
| 179 | - ] |
|
| 180 | - ), |
|
| 178 | + ), |
|
| 179 | + ] |
|
| 180 | + ), |
|
| 181 | 181 | ], |
| 182 | 182 | ]), |
| 183 | 183 | ] |
@@ -154,8 +154,8 @@ |
||
| 154 | 154 | return $this->serializer->denormalize( |
| 155 | 155 | $data, |
| 156 | 156 | $resourceClass, |
| 157 | - self::INTERNAL_FOR_DATALAYER, |
|
| 158 | - ['object_access' => new ObjectAccess(false, true), 'keep_setter_calls' => true] |
|
| 157 | + self::INTERNAL_FOR_DATALAYER, |
|
| 158 | + ['object_access' => new ObjectAccess(false, true), 'keep_setter_calls' => true] |
|
| 159 | 159 | ); |
| 160 | 160 | } |
| 161 | 161 | } |
@@ -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 | } |