@@ -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 | } |
@@ -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 | } |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | */ |
| 141 | 141 | protected function getRestrictedProductConcreteIds(array $productConcreteIds): array |
| 142 | 142 | { |
| 143 | - return array_reduce($productConcreteIds, function (array $restrictedProductConcreteIds, int $productConcreteId) { |
|
| 143 | + return array_reduce($productConcreteIds, function(array $restrictedProductConcreteIds, int $productConcreteId) { |
|
| 144 | 144 | if ($this->productConcreteRestrictionReader->isProductConcreteRestricted($productConcreteId)) { |
| 145 | 145 | $restrictedProductConcreteIds[] = $productConcreteId; |
| 146 | 146 | } |