@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | protected function setQueueAdaptersDependency(): void |
131 | 131 | { |
132 | - $this->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
132 | + $this->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
133 | 133 | return [ |
134 | 134 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
135 | 135 | ]; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | protected function setSearchPageMapPluginsDependency(): void |
143 | 143 | { |
144 | - $this->setDependency(SearchDependencyProvider::PLUGIN_SEARCH_PAGE_MAPS, function () { |
|
144 | + $this->setDependency(SearchDependencyProvider::PLUGIN_SEARCH_PAGE_MAPS, function() { |
|
145 | 145 | return [ |
146 | 146 | new ConfigurableBundleTemplatePageMapPlugin(), |
147 | 147 | ]; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $restProductOptionsAttributesTransfers; |
32 | 32 | } |
33 | 33 | |
34 | - usort($restProductOptionsAttributesTransfers, function ( |
|
34 | + usort($restProductOptionsAttributesTransfers, function( |
|
35 | 35 | RestProductOptionsAttributesTransfer $currentRestProductOptionsAttributesTransfer, |
36 | 36 | RestProductOptionsAttributesTransfer $nextRestProductOptionsAttributesTransfer |
37 | 37 | ) use ($sorts) { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | protected function removeNonOptionsRelatedSortingParameters(array $sorts): array |
92 | 92 | { |
93 | - return array_filter($sorts, function (SortInterface $sort) { |
|
93 | + return array_filter($sorts, function(SortInterface $sort) { |
|
94 | 94 | return explode(static::SORT_VALUE_DELIMITER, $sort->getField())[0] === ProductOptionsRestApiConfig::RESOURCE_PRODUCT_OPTIONS; |
95 | 95 | }); |
96 | 96 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $productConcreteTransfer->addProductAlternativeCreateRequest($productAlternativeCreateRequestTransfer); |
37 | 37 | $this->getProductAlternativeFacade()->persistProductAlternative($productConcreteTransfer); |
38 | 38 | |
39 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productConcreteTransfer): void { |
|
39 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productConcreteTransfer): void { |
|
40 | 40 | $this->cleanupProductAlternative($productConcreteTransfer); |
41 | 41 | }); |
42 | 42 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function addResourceRelationships(array $restResources, RestRequestInterface $restRequest): array |
36 | 36 | { |
37 | - $productConcreteSkus = array_map(function (RestResourceInterface $restResource) { |
|
37 | + $productConcreteSkus = array_map(function(RestResourceInterface $restResource) { |
|
38 | 38 | return $restResource->getId(); |
39 | 39 | }, $restResources); |
40 | 40 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function addProductLabelsResourceRelationships(array $restResources, array $productLabelResources): array |
56 | 56 | { |
57 | - return array_map(function (RestResourceInterface $restResource) use ($productLabelResources) { |
|
57 | + return array_map(function(RestResourceInterface $restResource) use ($productLabelResources) { |
|
58 | 58 | if (empty($productLabelResources[$restResource->getId()])) { |
59 | 59 | return; |
60 | 60 | } |
@@ -164,7 +164,7 @@ |
||
164 | 164 | */ |
165 | 165 | protected function addSearchContextToSearchDocumentTransfers(array $searchDocumentTransfers): array |
166 | 166 | { |
167 | - return array_map(function (SearchDocumentTransfer $searchDocumentTransfer) { |
|
167 | + return array_map(function(SearchDocumentTransfer $searchDocumentTransfer) { |
|
168 | 168 | return $this->addSearchContextToSearchDocumentTransfer($searchDocumentTransfer); |
169 | 169 | }, $searchDocumentTransfers); |
170 | 170 | } |
@@ -215,7 +215,7 @@ |
||
215 | 215 | */ |
216 | 216 | protected function expandSearchContextTransferForSearchDocumentTransfers(array $searchDocumentTransfers): array |
217 | 217 | { |
218 | - return array_map(function (SearchDocumentTransfer $searchDocumentTransfer) { |
|
218 | + return array_map(function(SearchDocumentTransfer $searchDocumentTransfer) { |
|
219 | 219 | return $this->expandSearchContextTransferForSearchDocumentTransfer($searchDocumentTransfer); |
220 | 220 | }, $searchDocumentTransfers); |
221 | 221 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | $splFileInfoMock->method('getExtension')->willReturn(static::SCHEMA_DEFINITION_FILE_EXTENSION); |
95 | 95 | |
96 | 96 | $finderMock = $this->createMock(Finder::class); |
97 | - $finderMock->method('getIterator')->willReturnCallback(function () use ($splFileInfoMock) { |
|
97 | + $finderMock->method('getIterator')->willReturnCallback(function() use ($splFileInfoMock) { |
|
98 | 98 | yield $splFileInfoMock; |
99 | 99 | }); |
100 | 100 |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | ->setMethods(['buildRepositorySettings']) |
354 | 354 | ->getMock(); |
355 | 355 | |
356 | - $repositoryMock->method('buildRepositorySettings')->willReturnCallback(function (): array { |
|
356 | + $repositoryMock->method('buildRepositorySettings')->willReturnCallback(function(): array { |
|
357 | 357 | $settings = func_get_arg(2) ?? []; |
358 | 358 | |
359 | 359 | return array_merge( |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | */ |
451 | 451 | protected function arrangeEnvironmentForMultiIndexTest(array $indexes): void |
452 | 452 | { |
453 | - $indexNames = array_map(function (Index $index) { |
|
453 | + $indexNames = array_map(function(Index $index) { |
|
454 | 454 | return $index->getName(); |
455 | 455 | }, $indexes); |
456 | 456 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | protected function addCleanup(Index $index): void |
81 | 81 | { |
82 | - $this->cleanup[$index->getName()] = function () use ($index) { |
|
82 | + $this->cleanup[$index->getName()] = function() use ($index) { |
|
83 | 83 | if ($index->exists()) { |
84 | 84 | $index->delete(); |
85 | 85 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function addCleanupForSnapshotInRepository(string $repositoryName, string $snapshotName): void |
241 | 241 | { |
242 | - $this->cleanup[] = function () use ($repositoryName, $snapshotName) { |
|
242 | + $this->cleanup[] = function() use ($repositoryName, $snapshotName) { |
|
243 | 243 | if ($this->existsSnapshotInRepository($repositoryName, $snapshotName)) { |
244 | 244 | $this->getSnapshot()->deleteSnapshot($repositoryName, $snapshotName); |
245 | 245 | } |