@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function configureOptions(OptionsResolver $resolver) |
46 | 46 | { |
47 | 47 | $resolver->setDefaults([ |
48 | - 'validation_groups' => function (FormInterface $form) { |
|
48 | + 'validation_groups' => function(FormInterface $form) { |
|
49 | 49 | $originalKey = $form->get(static::FIELD_PRODUCT_SET_KEY_ORIGINAL)->getData(); |
50 | 50 | $updatedKey = $form->get(static::FIELD_PRODUCT_SET_KEY)->getData(); |
51 | 51 | |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | |
148 | 148 | $builder->get(static::FIELD_WEIGHT) |
149 | 149 | ->addModelTransformer(new CallbackTransformer( |
150 | - function ($weight) { |
|
150 | + function($weight) { |
|
151 | 151 | return $weight; |
152 | 152 | }, |
153 | - function ($weight) { |
|
153 | + function($weight) { |
|
154 | 154 | return (int)$weight; |
155 | 155 | } |
156 | 156 | )); |
@@ -219,14 +219,14 @@ |
||
219 | 219 | $builder |
220 | 220 | ->get($fieldName) |
221 | 221 | ->addModelTransformer(new CallbackTransformer( |
222 | - function ($dateAsString) { |
|
222 | + function($dateAsString) { |
|
223 | 223 | if (!$dateAsString) { |
224 | 224 | return null; |
225 | 225 | } |
226 | 226 | |
227 | 227 | return new DateTime($dateAsString); |
228 | 228 | }, |
229 | - function ($dateAsObject) { |
|
229 | + function($dateAsObject) { |
|
230 | 230 | if (!$dateAsObject) { |
231 | 231 | return null; |
232 | 232 | } |
@@ -18,10 +18,10 @@ |
||
18 | 18 | protected function createArrayObjectModelTransformer() |
19 | 19 | { |
20 | 20 | return new CallbackTransformer( |
21 | - function ($value) { |
|
21 | + function($value) { |
|
22 | 22 | return (array)$value; |
23 | 23 | }, |
24 | - function ($value) { |
|
24 | + function($value) { |
|
25 | 25 | return new ArrayObject($value); |
26 | 26 | } |
27 | 27 | ); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function configureOptions(OptionsResolver $resolver) |
57 | 57 | { |
58 | 58 | $resolver->setDefaults([ |
59 | - 'validation_groups' => function (FormInterface $form) { |
|
59 | + 'validation_groups' => function(FormInterface $form) { |
|
60 | 60 | $defaultData = $form->getConfig()->getData(); |
61 | 61 | |
62 | 62 | if (!isset($defaultData[static::FIELD_ID_GLOSSARY_KEY_MAPPING])) { |
@@ -33,10 +33,10 @@ |
||
33 | 33 | */ |
34 | 34 | protected function build(TabsViewTransfer $tabsViewTransfer) |
35 | 35 | { |
36 | - $this->createPlaceHolderTabs($tabsViewTransfer) |
|
36 | + $this->createPlaceHolderTabs($tabsViewTransfer) |
|
37 | 37 | ->setFooter($tabsViewTransfer); |
38 | 38 | |
39 | - return $tabsViewTransfer; |
|
39 | + return $tabsViewTransfer; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function updateCmsBlockProductAbstractRelations(CmsBlockTransfer $cmsBlockTransfer) |
33 | 33 | { |
34 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer) { |
|
34 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer) { |
|
35 | 35 | $this->updateCmsBlockProductAbstractRelationsTransaction($cmsBlockTransfer); |
36 | 36 | }); |
37 | 37 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | return; |
83 | 83 | } |
84 | 84 | |
85 | - $this->handleDatabaseTransaction(function () use ($glossaryKeys) { |
|
85 | + $this->handleDatabaseTransaction(function() use ($glossaryKeys) { |
|
86 | 86 | $this->deleteGlossaryKeysTransaction($glossaryKeys); |
87 | 87 | }); |
88 | 88 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function saveGlossary(CmsBlockGlossaryTransfer $cmsBlockGlossaryTransfer) |
96 | 96 | { |
97 | - $this->handleDatabaseTransaction(function () use ($cmsBlockGlossaryTransfer) { |
|
97 | + $this->handleDatabaseTransaction(function() use ($cmsBlockGlossaryTransfer) { |
|
98 | 98 | $this->saveCmsGlossaryTransaction($cmsBlockGlossaryTransfer); |
99 | 99 | }); |
100 | 100 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function addKvStorage(Container $container) |
37 | 37 | { |
38 | - $container[static::KV_STORAGE] = function (Container $container) { |
|
38 | + $container[static::KV_STORAGE] = function(Container $container) { |
|
39 | 39 | return new CmsBlockToStorageClientBridge($container->getLocator()->storage()->client()); |
40 | 40 | }; |
41 | 41 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function provideDependencies(Container $container) |
24 | 24 | { |
25 | - $container[static::CMS_BLOCK_TWIG_CONTENT_RENDERER_PLUGIN] = function (Container $container) { |
|
25 | + $container[static::CMS_BLOCK_TWIG_CONTENT_RENDERER_PLUGIN] = function(Container $container) { |
|
26 | 26 | return $this->getCmsBlockTwigContentRendererPlugin(); |
27 | 27 | }; |
28 | 28 |