@@ -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); |
@@ -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 | } |
@@ -65,8 +65,7 @@ |
||
65 | 65 | ->saveProduct($productAbstractTransfer, [$productConcreteTransfer]); |
66 | 66 | |
67 | 67 | $type = $productConcreteTransfer->getProductBundle() === null ? |
68 | - ProductManagementConfig::PRODUCT_TYPE_REGULAR : |
|
69 | - ProductManagementConfig::PRODUCT_TYPE_BUNDLE; |
|
68 | + ProductManagementConfig::PRODUCT_TYPE_REGULAR : ProductManagementConfig::PRODUCT_TYPE_BUNDLE; |
|
70 | 69 | |
71 | 70 | $this->getFactory() |
72 | 71 | ->getProductFacade() |
@@ -39,7 +39,7 @@ |
||
39 | 39 | return false; |
40 | 40 | } |
41 | 41 | |
42 | - $mappingFunction = function (ProductOptionTransfer $productOptionTransfer) { |
|
42 | + $mappingFunction = function(ProductOptionTransfer $productOptionTransfer) { |
|
43 | 43 | return $productOptionTransfer->getIdProductOptionValue(); |
44 | 44 | }; |
45 | 45 |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ->setIsSuccessful(true) |
73 | 73 | ->addMessage((new ResponseMessageTransfer())->setText(static::MESSAGE_BUSINESS_UNIT_UPDATE_SUCCESS)); |
74 | 74 | |
75 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitResponseTransfer) { |
|
75 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyBusinessUnitResponseTransfer) { |
|
76 | 76 | return $this->executeUpdateTransaction($companyBusinessUnitResponseTransfer); |
77 | 77 | }); |
78 | 78 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | ->setIsSuccessful(true) |
93 | 93 | ->addMessage((new ResponseMessageTransfer())->setText(static::MESSAGE_BUSINESS_UNIT_DELETE_SUCCESS)); |
94 | 94 | |
95 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitResponseTransfer) { |
|
95 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyBusinessUnitResponseTransfer) { |
|
96 | 96 | return $this->executeDeleteTransaction($companyBusinessUnitResponseTransfer); |
97 | 97 | }); |
98 | 98 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | ->setIsSuccessful(true) |
65 | 65 | ->addMessage((new ResponseMessageTransfer())->setText(static::MESSAGE_BUSINESS_UNIT_CREATE_SUCCESS)); |
66 | 66 | |
67 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitResponseTransfer) { |
|
67 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyBusinessUnitResponseTransfer) { |
|
68 | 68 | return $this->executeCreateTransaction($companyBusinessUnitResponseTransfer); |
69 | 69 | }); |
70 | 70 | } |