@@ -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 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | return; |
77 | 77 | } |
78 | 78 | |
79 | - $quoteSkus = array_map(function (ItemTransfer $itemTransfer) { |
|
79 | + $quoteSkus = array_map(function(ItemTransfer $itemTransfer) { |
|
80 | 80 | return $itemTransfer->getSku(); |
81 | 81 | }, $quoteTransfer->getItems()->getArrayCopy()); |
82 | 82 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | $customerBlacklistIds = $customerProductListCollectionTransfer->getBlacklistIds() ?: []; |
54 | 54 | $customerWhitelistIds = $customerProductListCollectionTransfer->getWhitelistIds() ?: []; |
55 | - $cartChangeSkus = array_map(function (ItemTransfer $itemTransfer) { |
|
55 | + $cartChangeSkus = array_map(function(ItemTransfer $itemTransfer) { |
|
56 | 56 | return $itemTransfer->getSku(); |
57 | 57 | }, $cartChangeTransfer->getItems()->getArrayCopy()); |
58 | 58 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | */ |
67 | 67 | protected function filterPriceData(array $priceData, string $excludeKey): array |
68 | 68 | { |
69 | - $priceData = array_filter($priceData, function ($v, $k) use ($excludeKey) { |
|
69 | + $priceData = array_filter($priceData, function($v, $k) use ($excludeKey) { |
|
70 | 70 | if ($k === $excludeKey) { |
71 | 71 | return true; |
72 | 72 | } |
@@ -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 | ]; |
@@ -237,7 +237,7 @@ |
||
237 | 237 | protected function getResourceIdFromResourceType(string $resourceType): string |
238 | 238 | { |
239 | 239 | $resourceTypeExploded = explode('-', $resourceType); |
240 | - $resourceTypeCamelCased = array_map(function ($value) { |
|
240 | + $resourceTypeCamelCased = array_map(function($value) { |
|
241 | 241 | return ucfirst($this->textInflector->singularize($value)); |
242 | 242 | }, $resourceTypeExploded); |
243 | 243 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | ->add(static::FIELD_MESSAGE, TextType::class, [ |
50 | 50 | 'required' => false, |
51 | 51 | 'constraints' => [ |
52 | - new Callback(function ($value, ExecutionContextInterface $context) { |
|
52 | + new Callback(function($value, ExecutionContextInterface $context) { |
|
53 | 53 | /** @var \Symfony\Component\Form\Form $form */ |
54 | 54 | $form = $context->getObject(); |
55 | 55 | $parentThresholdGroupForm = $form->getParent()->getParent(); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $builder->add(static::FIELD_MESSAGE, TextType::class, [ |
46 | 46 | 'required' => false, |
47 | 47 | 'constraints' => [ |
48 | - new Callback(function ($value, ExecutionContextInterface $context) { |
|
48 | + new Callback(function($value, ExecutionContextInterface $context) { |
|
49 | 49 | /** @var \Symfony\Component\Form\Form $form */ |
50 | 50 | $form = $context->getObject(); |
51 | 51 | $parentThresholdGroupForm = $form->getParent()->getParent(); |