@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected function addQuoteFacade(Container $container): Container |
47 | 47 | { |
48 | - $container->set(static::FACADE_QUOTE, function (Container $container) { |
|
48 | + $container->set(static::FACADE_QUOTE, function(Container $container) { |
|
49 | 49 | return new MerchantSwitcherToQuoteFacadeBridge($container->getLocator()->quote()->facade()); |
50 | 50 | }); |
51 | 51 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function addCartFacade(Container $container): Container |
61 | 61 | { |
62 | - $container->set(static::FACADE_CART, function (Container $container) { |
|
62 | + $container->set(static::FACADE_CART, function(Container $container) { |
|
63 | 63 | return new MerchantSwitcherToCartFacadeBridge($container->getLocator()->cart()->facade()); |
64 | 64 | }); |
65 | 65 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function addMerchantProductOfferFacade(Container $container): Container |
75 | 75 | { |
76 | - $container->set(static::FACADE_MERCHANT_PRODUCT_OFFER, function (Container $container) { |
|
76 | + $container->set(static::FACADE_MERCHANT_PRODUCT_OFFER, function(Container $container) { |
|
77 | 77 | return new MerchantSwitcherToMerchantProductOfferFacadeBridge($container->getLocator()->merchantProductOffer()->facade()); |
78 | 78 | }); |
79 | 79 |
@@ -134,7 +134,7 @@ |
||
134 | 134 | protected function createSelectedAttributesCacheKey(array $selectedAttributes = []): string |
135 | 135 | { |
136 | 136 | $selectedAttributesCacheKey = ''; |
137 | - array_walk_recursive($selectedAttributes, function ($value, $key) use (&$selectedAttributesCacheKey) { |
|
137 | + array_walk_recursive($selectedAttributes, function($value, $key) use (&$selectedAttributesCacheKey) { |
|
138 | 138 | $selectedAttributesCacheKey .= $key . '-' . $value; |
139 | 139 | }); |
140 | 140 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | ->addMessage($this->createMessageTransfer(static::MESSAGE_PRODUCT_LABEL_NOT_FOUND, [$productLabelId])); |
66 | 66 | } |
67 | 67 | |
68 | - $this->getTransactionHandler()->handleTransaction(function () use ($productLabelTransfer) { |
|
68 | + $this->getTransactionHandler()->handleTransaction(function() use ($productLabelTransfer) { |
|
69 | 69 | $this->executeProductLabelDeleteTransaction($productLabelTransfer); |
70 | 70 | }); |
71 | 71 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | private function cleanupDiscountPromotion(DiscountPromotionTransfer $discountPromotionTransfer): void |
68 | 68 | { |
69 | 69 | $cleanupModule = $this->getDataCleanupHelper(); |
70 | - $cleanupModule->_addCleanup(function () use ($discountPromotionTransfer): void { |
|
70 | + $cleanupModule->_addCleanup(function() use ($discountPromotionTransfer): void { |
|
71 | 71 | $this->debug('Deleting DiscountPromotion: ' . $discountPromotionTransfer->getIdDiscountPromotion()); |
72 | 72 | $this->getDiscountPromotionQuery() |
73 | 73 | ->queryDiscountPromotionByIdDiscountPromotion($discountPromotionTransfer->getIdDiscountPromotion()) |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $discountPromotionTransfer->requireFkDiscount(); |
39 | 39 | |
40 | 40 | return $this->getTransactionHandler() |
41 | - ->handleTransaction(function () use ($discountPromotionTransfer) { |
|
41 | + ->handleTransaction(function() use ($discountPromotionTransfer) { |
|
42 | 42 | return $this->discountPromotionEntityManager->createDiscountPromotion($discountPromotionTransfer); |
43 | 43 | }); |
44 | 44 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $discountPromotionTransfer->requireFkDiscount(); |
39 | 39 | |
40 | 40 | return $this->getTransactionHandler() |
41 | - ->handleTransaction(function () use ($discountPromotionTransfer) { |
|
41 | + ->handleTransaction(function() use ($discountPromotionTransfer) { |
|
42 | 42 | return $this->discountPromotionEntityManager->updateDiscountPromotion($discountPromotionTransfer); |
43 | 43 | }); |
44 | 44 | } |
@@ -301,7 +301,7 @@ |
||
301 | 301 | */ |
302 | 302 | protected function getOrderItemTransfersSortCallback(): Closure |
303 | 303 | { |
304 | - return function (ItemTransfer $itemTransferA, ItemTransfer $itemTransferB) { |
|
304 | + return function(ItemTransfer $itemTransferA, ItemTransfer $itemTransferB) { |
|
305 | 305 | if ($itemTransferA->getShipment() === null || $itemTransferB->getShipment() === null) { |
306 | 306 | return 0; |
307 | 307 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | parent::setUp(); |
42 | 42 | |
43 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
43 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
44 | 44 | return [ |
45 | 45 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
46 | 46 | ]; |
@@ -257,7 +257,6 @@ |
||
257 | 257 | * {@inheritDoc} |
258 | 258 | * |
259 | 259 | * @api |
260 | - |
|
261 | 260 | * @return \Orm\Zed\PriceProduct\Persistence\SpyPriceProductQuery |
262 | 261 | */ |
263 | 262 | public function queryPriceProduct(): SpyPriceProductQuery |