@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function updateCategoryImageSetsForCategory(CategoryTransfer $categoryTransfer): void |
48 | 48 | { |
49 | - $this->getTransactionHandler()->handleTransaction(function () use ($categoryTransfer) { |
|
49 | + $this->getTransactionHandler()->handleTransaction(function() use ($categoryTransfer) { |
|
50 | 50 | $this->executeUpdateCategoryImageSetsForCategoryTransaction($categoryTransfer); |
51 | 51 | }); |
52 | 52 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'data_class' => CategoryImageSetTransfer::class, |
52 | 52 | 'constraints' => new Valid(), |
53 | 53 | 'required' => false, |
54 | - 'validation_groups' => function () use ($validationGroups) { |
|
54 | + 'validation_groups' => function() use ($validationGroups) { |
|
55 | 55 | return $validationGroups; |
56 | 56 | }, |
57 | 57 | 'compound' => true, |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'allow_delete' => true, |
155 | 155 | 'prototype' => true, |
156 | 156 | 'constraints' => [new Callback([ |
157 | - 'callback' => function ($images, ExecutionContextInterface $context) { |
|
157 | + 'callback' => function($images, ExecutionContextInterface $context) { |
|
158 | 158 | $selectedAttributes = []; |
159 | 159 | foreach ($images as $valueSet) { |
160 | 160 | if (!empty($valueSet['value'])) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected function injectPaymentSubForms(Container $container) |
41 | 41 | { |
42 | - $container->extend(CheckoutDependencyProvider::PAYMENT_SUB_FORMS, function (SubFormPluginCollection $paymentSubForms) { |
|
42 | + $container->extend(CheckoutDependencyProvider::PAYMENT_SUB_FORMS, function(SubFormPluginCollection $paymentSubForms) { |
|
43 | 43 | $paymentSubForms->add(new DummyPaymentCreditCardSubFormPlugin()); |
44 | 44 | $paymentSubForms->add(new DummyPaymentInvoiceSubFormPlugin()); |
45 | 45 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function injectPaymentMethodHandler(Container $container) |
58 | 58 | { |
59 | - $container->extend(CheckoutDependencyProvider::PAYMENT_METHOD_HANDLER, function (StepHandlerPluginCollection $paymentMethodHandler) { |
|
59 | + $container->extend(CheckoutDependencyProvider::PAYMENT_METHOD_HANDLER, function(StepHandlerPluginCollection $paymentMethodHandler) { |
|
60 | 60 | $dummyPaymentHandlerPlugin = new DummyPaymentHandlerPlugin(); |
61 | 61 | |
62 | 62 | $paymentMethodHandler->add($dummyPaymentHandlerPlugin, DummyPaymentConfig::PAYMENT_METHOD_CREDIT_CARD); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | protected function addApplicationPlugins(Container $container): Container |
38 | 38 | { |
39 | - $container->set(static::PLUGINS_APPLICATION, function (Container $container): array { |
|
39 | + $container->set(static::PLUGINS_APPLICATION, function(Container $container): array { |
|
40 | 40 | return $this->getApplicationPlugins(); |
41 | 41 | }); |
42 | 42 |
@@ -43,7 +43,6 @@ |
||
43 | 43 | * @param \Generated\Shared\Transfer\ReclamationTransfer $reclamationTransfer |
44 | 44 | * |
45 | 45 | * @throws \Spryker\Zed\SalesReclamation\Business\Exception\ReclamationNotFoundException |
46 | - |
|
47 | 46 | * @return \Generated\Shared\Transfer\ReclamationTransfer |
48 | 47 | */ |
49 | 48 | public function getReclamationById(ReclamationTransfer $reclamationTransfer): ReclamationTransfer |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $application = new Application(); |
47 | 47 | $application->register(new SslServiceProvider()); |
48 | 48 | |
49 | - $application['controllers']->get('/foo', function () use ($controllerResponse) { |
|
49 | + $application['controllers']->get('/foo', function() use ($controllerResponse) { |
|
50 | 50 | return $controllerResponse; |
51 | 51 | }); |
52 | 52 |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function boot() |
60 | 60 | { |
61 | - $this->application['debug'] = function () { |
|
61 | + $this->application['debug'] = function() { |
|
62 | 62 | return Config::get(ApplicationConstants::ENABLE_APPLICATION_DEBUG, false); |
63 | 63 | }; |
64 | 64 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | protected function optimizeApp() |
233 | 233 | { |
234 | 234 | $application = $this->application; |
235 | - $application['resolver'] = function () use ($application) { |
|
235 | + $application['resolver'] = function() use ($application) { |
|
236 | 236 | return new ZedFragmentControllerResolver($application); |
237 | 237 | }; |
238 | 238 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | $stores = $storeRelation->getStores(); |
75 | 75 | |
76 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
76 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
77 | 77 | return $storeTransfer->getName(); |
78 | 78 | }, $stores->getArrayCopy()); |
79 | 79 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | public function configureOptions(OptionsResolver $resolver): void |
56 | 56 | { |
57 | 57 | $resolver->setDefaults([ |
58 | - 'validation_groups' => function (FormInterface $form) { |
|
58 | + 'validation_groups' => function(FormInterface $form) { |
|
59 | 59 | $defaultData = $form->getConfig()->getData(); |
60 | 60 | |
61 | 61 | if (!isset($defaultData[self::FIELD_ID_KEY_MAPPING])) { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | ]; |
216 | 216 | |
217 | 217 | $placeholderConstraints[] = new Callback([ |
218 | - 'callback' => function ($placeholder, ExecutionContextInterface $context) { |
|
218 | + 'callback' => function($placeholder, ExecutionContextInterface $context) { |
|
219 | 219 | $formData = $context->getRoot()->getViewData(); |
220 | 220 | if ($this->getFacade()->hasPagePlaceholderMapping($formData[self::FIELD_FK_PAGE], $placeholder)) { |
221 | 221 | $context->addViolation('Placeholder has already mapped'); |