@@ -168,7 +168,7 @@ |
||
168 | 168 | */ |
169 | 169 | protected function filterSalesOrderThresholdsByThresholdGroup(array $salesOrderThresholdValueTransfers, string $thresholdGroup): array |
170 | 170 | { |
171 | - return array_filter($salesOrderThresholdValueTransfers, function (SalesOrderThresholdValueTransfer $salesOrderThresholdValueTransfers) use ($thresholdGroup) { |
|
171 | + return array_filter($salesOrderThresholdValueTransfers, function(SalesOrderThresholdValueTransfer $salesOrderThresholdValueTransfers) use ($thresholdGroup) { |
|
172 | 172 | return $salesOrderThresholdValueTransfers->getSalesOrderThresholdType()->getThresholdGroup() === $thresholdGroup; |
173 | 173 | }); |
174 | 174 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | { |
87 | 87 | $shoppingListFromCartRequestTransfer->requireIdQuote()->requireCustomer(); |
88 | 88 | |
89 | - return $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListFromCartRequestTransfer) { |
|
89 | + return $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListFromCartRequestTransfer) { |
|
90 | 90 | return $this->executeCreateShoppingListFromQuoteTransaction($shoppingListFromCartRequestTransfer); |
91 | 91 | }); |
92 | 92 | } |
@@ -212,7 +212,7 @@ |
||
212 | 212 | ->setId($idShoppingList) |
213 | 213 | ->setEvent(ShoppingListEvents::SHOPPING_LIST_UNPUBLISH) |
214 | 214 | ->setModifiedColumns([ |
215 | - $companyUserTransfer->getCustomer()->getCustomerReference() => ShoppingListTransfer::CUSTOMER_REFERENCE, |
|
215 | + $companyUserTransfer->getCustomer()->getCustomerReference() => ShoppingListTransfer::CUSTOMER_REFERENCE, |
|
216 | 216 | ]); |
217 | 217 | $this->eventFacade->trigger(ShoppingListEvents::SHOPPING_LIST_UNPUBLISH, $eventTransfer); |
218 | 218 | } |
@@ -85,7 +85,7 @@ |
||
85 | 85 | return (new ShoppingListShareResponseTransfer())->setIsSuccess(false); |
86 | 86 | } |
87 | 87 | |
88 | - $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListDismissRequest) { |
|
88 | + $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListDismissRequest) { |
|
89 | 89 | $this->executeDismissShoppingListSharingTransaction($shoppingListDismissRequest); |
90 | 90 | }); |
91 | 91 |
@@ -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 | ]; |
@@ -64,13 +64,13 @@ |
||
64 | 64 | |
65 | 65 | $builder |
66 | 66 | ->get(static::FIELD_CONTENT_TYPE_ACCESS) |
67 | - ->addModelTransformer(new CallbackTransformer(function ($customerAccess): array { |
|
67 | + ->addModelTransformer(new CallbackTransformer(function($customerAccess): array { |
|
68 | 68 | if ($customerAccess) { |
69 | 69 | return (array)$customerAccess; |
70 | 70 | } |
71 | 71 | |
72 | 72 | return []; |
73 | - }, function ($customerAccess): ArrayObject { |
|
73 | + }, function($customerAccess): ArrayObject { |
|
74 | 74 | return new ArrayObject($customerAccess); |
75 | 75 | })); |
76 | 76 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function updateUnauthenticatedCustomerAccess(CustomerAccessTransfer $customerAccessTransfer): CustomerAccessTransfer |
37 | 37 | { |
38 | - return $this->getTransactionHandler()->handleTransaction(function () use ($customerAccessTransfer) { |
|
38 | + return $this->getTransactionHandler()->handleTransaction(function() use ($customerAccessTransfer) { |
|
39 | 39 | $this->customerAccessEntityManager->setAllContentTypesToAccessible(); |
40 | 40 | |
41 | 41 | return $this->customerAccessEntityManager->setContentTypesToInaccessible($customerAccessTransfer); |
@@ -494,7 +494,7 @@ |
||
494 | 494 | $glossaryKeyBuilderMock, |
495 | 495 | ])->setMethods(['getLocaleByName'])->getMock(); |
496 | 496 | |
497 | - $attributeTranslatorMock->method('getLocaleByName')->willReturnCallback(function ($localeName) { |
|
497 | + $attributeTranslatorMock->method('getLocaleByName')->willReturnCallback(function($localeName) { |
|
498 | 498 | return $this->tester->getLocale($localeName); |
499 | 499 | }); |
500 | 500 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | Select2ComboBoxType::class, |
60 | 60 | [ |
61 | 61 | 'choices' => $this->extractAttributeValuesFromTransfer($options[static::OPTION_PRODUCT_MANAGEMENT_ATTRIBUTE_TRANSFER]), |
62 | - 'choice_label' => function ($choiceValue) { |
|
62 | + 'choice_label' => function($choiceValue) { |
|
63 | 63 | return $choiceValue; |
64 | 64 | }, |
65 | 65 | 'label' => false, |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | protected function extractAttributeValuesFromTransfer(ProductManagementAttributeTransfer $productManagementAttributeTransfer) |
120 | 120 | { |
121 | - return array_map(function (ProductManagementAttributeValueTransfer $productManagementAttributeValueTransfer) { |
|
121 | + return array_map(function(ProductManagementAttributeValueTransfer $productManagementAttributeValueTransfer) { |
|
122 | 122 | return $productManagementAttributeValueTransfer->getValue(); |
123 | 123 | }, $productManagementAttributeTransfer->getValues()->getArrayCopy()); |
124 | 124 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | protected function getAttributeCombinationsFromConcreteProducts(array $concreteProducts) |
58 | 58 | { |
59 | - return array_map(function (ProductConcreteTransfer $productConcreteTransfer) { |
|
59 | + return array_map(function(ProductConcreteTransfer $productConcreteTransfer) { |
|
60 | 60 | return $productConcreteTransfer->getAttributes(); |
61 | 61 | }, $concreteProducts); |
62 | 62 | } |