@@ -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 | ]; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $configurableBundleTemplateTransfer |
80 | 80 | ->setName($this->configurableBundleNameGenerator->generateTemplateName($configurableBundleTemplateTransfer)); |
81 | 81 | |
82 | - return $this->getTransactionHandler()->handleTransaction(function () use ($configurableBundleTemplateTransfer) { |
|
82 | + return $this->getTransactionHandler()->handleTransaction(function() use ($configurableBundleTemplateTransfer) { |
|
83 | 83 | return $this->executeUpdateConfigurableBundleTemplateTransaction($configurableBundleTemplateTransfer); |
84 | 84 | }); |
85 | 85 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $configurableBundleTemplateTransfer = $configurableBundleTemplateResponseTransfer->getConfigurableBundleTemplate(); |
68 | 68 | |
69 | - return $this->getTransactionHandler()->handleTransaction(function () use ($configurableBundleTemplateTransfer) { |
|
69 | + return $this->getTransactionHandler()->handleTransaction(function() use ($configurableBundleTemplateTransfer) { |
|
70 | 70 | return $this->executeDeleteConfigurableBundleTemplateTransaction($configurableBundleTemplateTransfer); |
71 | 71 | }); |
72 | 72 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function createConfigurableBundleTemplate( |
57 | 57 | ConfigurableBundleTemplateTransfer $configurableBundleTemplateTransfer |
58 | 58 | ): ConfigurableBundleTemplateResponseTransfer { |
59 | - return $this->getTransactionHandler()->handleTransaction(function () use ($configurableBundleTemplateTransfer) { |
|
59 | + return $this->getTransactionHandler()->handleTransaction(function() use ($configurableBundleTemplateTransfer) { |
|
60 | 60 | return $this->executeCreateConfigurableBundleTemplateTransaction($configurableBundleTemplateTransfer); |
61 | 61 | }); |
62 | 62 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | protected function addPreSubmitEventToProductCategoryField(FormBuilderInterface $builder): void |
86 | 86 | { |
87 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event): void { |
|
87 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event): void { |
|
88 | 88 | $eventData = $event->getData(); |
89 | 89 | |
90 | 90 | if (!isset($eventData[static::FIELD_PRODUCT_IDS])) { |
@@ -112,10 +112,10 @@ discard block |
||
112 | 112 | $builder->add(static::FIELD_ALL, ChoiceType::class, [ |
113 | 113 | 'required' => false, |
114 | 114 | 'choices' => $options[static::OPTION_ALL_ARRAY], |
115 | - 'choice_value' => function ($choice) { |
|
115 | + 'choice_value' => function($choice) { |
|
116 | 116 | return $choice ?? true; |
117 | 117 | }, |
118 | - 'choice_attr' => function ($choice, $key, $value) { |
|
118 | + 'choice_attr' => function($choice, $key, $value) { |
|
119 | 119 | return [ |
120 | 120 | 'data-disable' => $value, |
121 | 121 | 'data-inputs' => $this->getFactory()->getUtilEncoding()->encodeJson([static::FIELD_PRODUCT_IDS, static::FIELD_CATEGORY_IDS]), |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | protected function addPreSetDataEventToProductIdsField(FormBuilderInterface $builder): void |
162 | 162 | { |
163 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event): void { |
|
163 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event): void { |
|
164 | 164 | if (!$event->getData()) { |
165 | 165 | return; |
166 | 166 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | protected function addDebugMode(ContainerInterface $container): ContainerInterface |
42 | 42 | { |
43 | - $container->set(static::DEBUG, function () { |
|
43 | + $container->set(static::DEBUG, function() { |
|
44 | 44 | return $this->getConfig()->getIsRestDebugEnabled(); |
45 | 45 | }); |
46 | 46 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function addResourceBuilder(ContainerInterface $container): ContainerInterface |
56 | 56 | { |
57 | - $container->set(static::SERVICE_RESOURCE_BUILDER, function () { |
|
57 | + $container->set(static::SERVICE_RESOURCE_BUILDER, function() { |
|
58 | 58 | return $this->getFactory()->createRestResourceBuilder(); |
59 | 59 | }); |
60 | 60 |
@@ -75,10 +75,10 @@ |
||
75 | 75 | $builder->add(static::FIELD_ALL, ChoiceType::class, [ |
76 | 76 | 'required' => false, |
77 | 77 | 'choices' => $options[static::OPTION_ALL_ARRAY], |
78 | - 'choice_value' => function ($choice) { |
|
78 | + 'choice_value' => function($choice) { |
|
79 | 79 | return $choice ?? true; |
80 | 80 | }, |
81 | - 'choice_attr' => function ($choice, $key, $value) { |
|
81 | + 'choice_attr' => function($choice, $key, $value) { |
|
82 | 82 | return [ |
83 | 83 | 'data-disable' => $value, |
84 | 84 | 'data-inputs' => $this->getFactory()->getUtilEncoding()->encodeJson([static::FIELD_CMS_PAGE_IDS]), |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $cmsSlotTransfer->setIdCmsSlot($cmsSlotEntity->getIdCmsSlot()); |
80 | 80 | |
81 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($cmsSlotTransfer): void { |
|
81 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($cmsSlotTransfer): void { |
|
82 | 82 | $this->cleanupCmsSlot($cmsSlotTransfer); |
83 | 83 | }); |
84 | 84 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | $cmsSlotTemplateTransfer->setIdCmsSlotTemplate($cmsSlotTemplateEntity->getIdCmsSlotTemplate()); |
116 | 116 | |
117 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($cmsSlotTemplateTransfer): void { |
|
117 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($cmsSlotTemplateTransfer): void { |
|
118 | 118 | $this->cleanupCmsSlotTemplate($cmsSlotTemplateTransfer); |
119 | 119 | }); |
120 | 120 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function expand(FormBuilderInterface $builder, array $options): FormBuilderInterface |
43 | 43 | { |
44 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
44 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
45 | 45 | $productListOptions = $this->productListMerchantRelationshipFormDataProvider->getOptions($event->getData()); |
46 | 46 | |
47 | 47 | $event->getForm() |