@@ -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 | ]; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | protected const MESSAGE_INVALID_RESOURCE_TO_TABLE_CONFIGURATION_MAPPING_EXCEPTION = <<<EOT |
17 | 17 | No table mapping was found for resource %s. Make sure that table mappings are configured correctly |
18 | 18 | under `Spryker\Shared\StorageDatabase\StorageDatabaseConstants::RESOURCE_PREFIX_TO_STORAGE_TABLE_MAP` key. |
19 | -EOT; |
|
19 | +eot; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @var \Spryker\Client\StorageDatabase\StorageDatabaseConfig |
@@ -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 | } |
@@ -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 | } |