@@ -70,7 +70,7 @@ |
||
70 | 70 | $customerTransfer->requireIdCustomer(); |
71 | 71 | $customerTransfer = $this->getCustomer($customerTransfer); |
72 | 72 | |
73 | - $this->handleDatabaseTransaction(function () use ($customerTransfer) { |
|
73 | + $this->handleDatabaseTransaction(function() use ($customerTransfer) { |
|
74 | 74 | $this->processTransaction($customerTransfer); |
75 | 75 | }); |
76 | 76 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function updateCmsBlock(CmsBlockTransfer $cmsBlockTransfer) |
61 | 61 | { |
62 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer) { |
|
62 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer) { |
|
63 | 63 | $this->updateCmsBlockCategoryRelationsTransaction($cmsBlockTransfer); |
64 | 64 | }); |
65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function updateCategory(CategoryTransfer $categoryTransfer) |
73 | 73 | { |
74 | - $this->handleDatabaseTransaction(function () use ($categoryTransfer) { |
|
74 | + $this->handleDatabaseTransaction(function() use ($categoryTransfer) { |
|
75 | 75 | $this->updateCategoryCmsBlockRelationsTransaction($categoryTransfer); |
76 | 76 | }); |
77 | 77 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function getCallable() |
43 | 43 | { |
44 | - return Middleware::mapRequest(function (RequestInterface $request) { |
|
44 | + return Middleware::mapRequest(function(RequestInterface $request) { |
|
45 | 45 | if ($request->hasHeader('X-Yves-Host')) { |
46 | 46 | $request = $request->withAddedHeader('X-Request-ID', $this->utilNetworkService->getRequestId()); |
47 | 47 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getCallable() |
35 | 35 | { |
36 | - return Middleware::mapResponse(function (ResponseInterface $response) { |
|
36 | + return Middleware::mapResponse(function(ResponseInterface $response) { |
|
37 | 37 | if ($response->hasHeader(AbstractHttpClient::HEADER_HOST_ZED)) { |
38 | 38 | $message = sprintf( |
39 | 39 | 'Transfer response [%s]', |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getCallable() |
35 | 35 | { |
36 | - return Middleware::mapRequest(function (RequestInterface $request) { |
|
36 | + return Middleware::mapRequest(function(RequestInterface $request) { |
|
37 | 37 | if ($request->hasHeader(AbstractHttpClient::HEADER_HOST_YVES)) { |
38 | 38 | $this->getLogger()->info(sprintf( |
39 | 39 | 'Transfer request [%s] %s', |
@@ -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(); |
@@ -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()); |
@@ -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 |
@@ -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 |