@@ -25,7 +25,7 @@ |
||
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | 27 | $containerGlobals = new ContainerGlobals(); |
28 | - $containerGlobals[static::CLIENT_ZED_REQUEST] = function () { |
|
28 | + $containerGlobals[static::CLIENT_ZED_REQUEST] = function() { |
|
29 | 29 | $container = new Container(); |
30 | 30 | |
31 | 31 | return $container->getLocator()->zedRequest()->client(); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | return $currentController; |
47 | 47 | } |
48 | 48 | |
49 | - $newController = function () use ($controller, $action) { |
|
49 | + $newController = function() use ($controller, $action) { |
|
50 | 50 | |
51 | 51 | MessengerConfig::setMessageTray(MessengerConstants::IN_MEMORY_TRAY); |
52 | 52 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function register(Application $app) |
25 | 25 | { |
26 | - $app[self::ASSERTION] = function () { |
|
26 | + $app[self::ASSERTION] = function() { |
|
27 | 27 | return new AssertionFacade(); |
28 | 28 | }; |
29 | 29 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $resolver->setRequired(static::OPTION_AMOUNT_PER_STORE); |
63 | 63 | |
64 | 64 | $resolver->setDefaults([ |
65 | - static::OPTION_AMOUNT_PER_STORE => true, |
|
65 | + static::OPTION_AMOUNT_PER_STORE => true, |
|
66 | 66 | ]); |
67 | 67 | |
68 | 68 | parent::configureOptions($resolver); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | $builder->addEventListener( |
44 | 44 | FormEvents::PRE_SET_DATA, |
45 | - function (FormEvent $event) use ($options) { |
|
45 | + function(FormEvent $event) use ($options) { |
|
46 | 46 | $this->setInitialMoneyValueData($event, $options); |
47 | 47 | } |
48 | 48 | ); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $builder->addEventListener( |
56 | 56 | FormEvents::PRE_SET_DATA, |
57 | - function (FormEvent $event) use ($validationGroups) { |
|
57 | + function(FormEvent $event) use ($validationGroups) { |
|
58 | 58 | $moneyCurrencyOptions = $this->getFactory() |
59 | 59 | ->createMoneyDataProvider() |
60 | 60 | ->getMoneyCurrencyOptionsFor($event->getData()); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | { |
60 | 60 | usort( |
61 | 61 | $options, |
62 | - function (ProductOptionTransfer $productOptionLeft, ProductOptionTransfer $productOptionRight) { |
|
62 | + function(ProductOptionTransfer $productOptionLeft, ProductOptionTransfer $productOptionRight) { |
|
63 | 63 | return ($productOptionLeft->getIdProductOptionValue() < $productOptionRight->getIdProductOptionValue()) ? -1 : 1; |
64 | 64 | } |
65 | 65 | ); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | foreach ($quoteTransfer->getItems() as $itemTransfer) { |
22 | 22 | $itemQuantity = $itemTransfer->getQuantity(); |
23 | 23 | foreach ($itemTransfer->getProductOptions() as $productOptionTransfer) { |
24 | - $productOptionTransfer->setQuantity($itemQuantity); |
|
24 | + $productOptionTransfer->setQuantity($itemQuantity); |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | $changeTransfer = $this->createCartChangeTransfer( |
35 | 35 | [ |
36 | 36 | 'cartItem1' => [ |
37 | - (new ProductOptionTransfer())->setIdProductOptionValue(2), |
|
38 | - (new ProductOptionTransfer())->setIdProductOptionValue(1), |
|
37 | + (new ProductOptionTransfer())->setIdProductOptionValue(2), |
|
38 | + (new ProductOptionTransfer())->setIdProductOptionValue(1), |
|
39 | 39 | ], |
40 | 40 | ] |
41 | 41 | ); |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | $changeTransfer = $this->createCartChangeTransfer( |
56 | 56 | [ |
57 | 57 | 'cartItem1' => [ |
58 | - (new ProductOptionTransfer())->setIdProductOptionValue(2), |
|
59 | - (new ProductOptionTransfer())->setIdProductOptionValue(1), |
|
58 | + (new ProductOptionTransfer())->setIdProductOptionValue(2), |
|
59 | + (new ProductOptionTransfer())->setIdProductOptionValue(1), |
|
60 | 60 | ], |
61 | 61 | ] |
62 | 62 | ); |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | $changeTransfer = $this->createCartChangeTransfer( |
79 | 79 | [ |
80 | 80 | 'cartItem1' => [ |
81 | - (new ProductOptionTransfer())->setIdProductOptionValue(1), |
|
82 | - (new ProductOptionTransfer())->setIdProductOptionValue(3), |
|
83 | - (new ProductOptionTransfer())->setIdProductOptionValue('A'), |
|
84 | - (new ProductOptionTransfer())->setIdProductOptionValue(2), |
|
81 | + (new ProductOptionTransfer())->setIdProductOptionValue(1), |
|
82 | + (new ProductOptionTransfer())->setIdProductOptionValue(3), |
|
83 | + (new ProductOptionTransfer())->setIdProductOptionValue('A'), |
|
84 | + (new ProductOptionTransfer())->setIdProductOptionValue(2), |
|
85 | 85 | ], |
86 | 86 | 'cartItem2' => [ |
87 | 87 | (new ProductOptionTransfer())->setIdProductOptionValue(2), |
@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | { |
132 | 132 | return [ |
133 | 133 | [ |
134 | - 'getFunctionName' => 'functionName', |
|
135 | - 'getAvailableTemplates' => [ |
|
136 | - 'identifier' => '@module/path/to/template.twig', |
|
137 | - ], |
|
138 | - 'getUsageInformation' => 'how to..', |
|
134 | + 'getFunctionName' => 'functionName', |
|
135 | + 'getAvailableTemplates' => [ |
|
136 | + 'identifier' => '@module/path/to/template.twig', |
|
137 | + ], |
|
138 | + 'getUsageInformation' => 'how to..', |
|
139 | 139 | ], |
140 | 140 | [ |
141 | 141 | 'getFunctionName' => 'functionName1', |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $container = $this->createZedContainer(); |
186 | 186 | $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function (Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
187 | 187 | return [ |
188 | - 'function' => $cmsContentWidgetParameterMapperPluginMock, |
|
188 | + 'function' => $cmsContentWidgetParameterMapperPluginMock, |
|
189 | 189 | ]; |
190 | 190 | }; |
191 | 191 |
@@ -182,13 +182,13 @@ |
||
182 | 182 | $cmsBusinessFactory = $this->createBusinessFactory(); |
183 | 183 | |
184 | 184 | $container = $this->createZedContainer(); |
185 | - $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function (Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
|
185 | + $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function(Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
|
186 | 186 | return [ |
187 | 187 | 'function' => $cmsContentWidgetParameterMapperPluginMock, |
188 | 188 | ]; |
189 | 189 | }; |
190 | 190 | |
191 | - $container[CmsContentWidgetDependencyProvider::FACADE_GLOSSARY] = function (Container $container) { |
|
191 | + $container[CmsContentWidgetDependencyProvider::FACADE_GLOSSARY] = function(Container $container) { |
|
192 | 192 | return $this->createGlossaryFacadeMock(); |
193 | 193 | }; |
194 | 194 |