@@ -289,13 +289,13 @@ |
||
289 | 289 | */ |
290 | 290 | protected function setUpDependencies(): void |
291 | 291 | { |
292 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
292 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
293 | 293 | return [ |
294 | 294 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
295 | 295 | ]; |
296 | 296 | }); |
297 | 297 | |
298 | - $this->tester->setDependency(StorageDatabaseDependencyProvider::PLUGIN_STORAGE_READER_PROVIDER, function () { |
|
298 | + $this->tester->setDependency(StorageDatabaseDependencyProvider::PLUGIN_STORAGE_READER_PROVIDER, function() { |
|
299 | 299 | return $this->getStorageReaderProviderPlugin(); |
300 | 300 | }); |
301 | 301 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | protected function addConfigurableBundleTemplateSlotPropelQuery(Container $container): Container |
40 | 40 | { |
41 | - $container->set(static::PROPEL_QUERY_CONFIGURABLE_BUNDLE_TEMPLATE_SLOT, $container->factory(function () { |
|
41 | + $container->set(static::PROPEL_QUERY_CONFIGURABLE_BUNDLE_TEMPLATE_SLOT, $container->factory(function() { |
|
42 | 42 | return SpyConfigurableBundleTemplateSlotQuery::create(); |
43 | 43 | })); |
44 | 44 |
@@ -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 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $wishlistTransfer = (new WishlistBuilder($override))->build(); |
32 | 32 | $wishlistTransfer = $this->getWishlistFacade()->createWishlist($wishlistTransfer); |
33 | 33 | |
34 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($wishlistTransfer): void { |
|
34 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($wishlistTransfer): void { |
|
35 | 35 | $this->cleanupWishlist($wishlistTransfer); |
36 | 36 | }); |
37 | 37 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $wishlistItemTransfer = (new WishlistItemBuilder($override))->build(); |
49 | 49 | $wishlistItemTransfer = $this->getWishlistFacade()->addItem($wishlistItemTransfer); |
50 | 50 | |
51 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($wishlistItemTransfer): void { |
|
51 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($wishlistItemTransfer): void { |
|
52 | 52 | $this->cleanupWishlistItem($this->getWishlistFacade()->addItem($wishlistItemTransfer)); |
53 | 53 | }); |
54 | 54 |
@@ -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 | } |