@@ -352,7 +352,7 @@ |
||
352 | 352 | */ |
353 | 353 | public function resetAccruedTaxCalculatorRoundingErrorDelta() |
354 | 354 | { |
355 | - $this->getFactory() |
|
355 | + $this->getFactory() |
|
356 | 356 | ->createAccruedTaxCalculator() |
357 | 357 | ->resetRoundingErrorDelta(); |
358 | 358 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | return [ |
53 | - 'form' => $taxSetForm->createView(), |
|
53 | + 'form' => $taxSetForm->createView(), |
|
54 | 54 | ]; |
55 | 55 | } |
56 | 56 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | protected function getUnresolvableCollection() |
43 | 43 | { |
44 | 44 | if (self::$unresolvableCollection === null) { |
45 | - $callback = function () { |
|
45 | + $callback = function() { |
|
46 | 46 | return $this->getData(); |
47 | 47 | }; |
48 | 48 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | $stores = []; |
4 | 4 | |
5 | 5 | $stores['DE'] = [ |
6 | - 'contexts' => [ // different contexts |
|
6 | + 'contexts' => [// different contexts |
|
7 | 7 | // shared settings for all contexts |
8 | 8 | '*' => [ |
9 | 9 | 'timezone' => 'Europe/Berlin', |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | 'locales' => [ |
26 | 26 | 'de' => 'de_DE', |
27 | 27 | 'en' => 'en_US', |
28 | - ], // first entry is default |
|
29 | - 'countries' => ['DE'], // first entry is default |
|
28 | + ], // first entry is default |
|
29 | + 'countries' => ['DE'], // first entry is default |
|
30 | 30 | 'currencyIsoCode' => 'EUR', // internal and shop |
31 | 31 | ]; |
32 | 32 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | $storeMock = $this->createStoreMock(); |
107 | 107 | $storeMock->method('getStoreSetup') |
108 | - ->willReturn($mockConfig); |
|
108 | + ->willReturn($mockConfig); |
|
109 | 109 | |
110 | 110 | $storeMock->initializeSetup('DE'); |
111 | 111 |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | protected function createValidFromRangeConstraint() |
237 | 237 | { |
238 | 238 | return new Callback([ |
239 | - 'callback' => function ($dateTimeFrom, ExecutionContextInterface $context) { |
|
239 | + 'callback' => function($dateTimeFrom, ExecutionContextInterface $context) { |
|
240 | 240 | $cmsPageTransfer = $context->getRoot()->getData(); |
241 | 241 | if (!$dateTimeFrom) { |
242 | 242 | if ($cmsPageTransfer->getValidTo()) { |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | protected function createValidToFieldRangeConstraint() |
264 | 264 | { |
265 | 265 | return new Callback([ |
266 | - 'callback' => function ($dateTimeTo, ExecutionContextInterface $context) { |
|
266 | + 'callback' => function($dateTimeTo, ExecutionContextInterface $context) { |
|
267 | 267 | |
268 | 268 | $cmsPageTransfer = $context->getRoot()->getData(); |
269 | 269 | |
@@ -287,12 +287,12 @@ discard block |
||
287 | 287 | protected function createDateTimeModelTransformer() |
288 | 288 | { |
289 | 289 | return new CallbackTransformer( |
290 | - function ($value) { |
|
290 | + function($value) { |
|
291 | 291 | if ($value !== null) { |
292 | 292 | return new DateTime($value); |
293 | 293 | } |
294 | 294 | }, |
295 | - function ($value) { |
|
295 | + function($value) { |
|
296 | 296 | return $value; |
297 | 297 | } |
298 | 298 | ); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | 'class' => 'datepicker safe-datetime', |
196 | 196 | ], |
197 | 197 | 'constraints' => [ |
198 | - $this->createValidFromRangeConstraint(), |
|
198 | + $this->createValidFromRangeConstraint(), |
|
199 | 199 | ], |
200 | 200 | ]); |
201 | 201 | |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | protected function createValidToFieldRangeConstraint() |
263 | 263 | { |
264 | 264 | return new Callback([ |
265 | - 'callback' => function ($dateTimeTo, ExecutionContextInterface $context) { |
|
265 | + 'callback' => function ($dateTimeTo, ExecutionContextInterface $context) { |
|
266 | 266 | |
267 | 267 | $cmsPageTransfer = $context->getRoot()->getData(); |
268 | 268 | |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | if ($dateTimeTo < $cmsPageTransfer->getValidFrom()) { |
277 | 277 | $context->addViolation('Date "Valid to" cannot be earlier than "Valid from".'); |
278 | 278 | } |
279 | - }, |
|
279 | + }, |
|
280 | 280 | ]); |
281 | 281 | } |
282 | 282 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | $this->assertWishlistUniqueName($wishlistTransfer); |
67 | 67 | |
68 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
68 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
69 | 69 | return $this->executeCreateWishlistTransaction($wishlistTransfer); |
70 | 70 | }); |
71 | 71 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | { |
118 | 118 | $wishlistTransfer->requireIdWishlist(); |
119 | 119 | |
120 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
120 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
121 | 121 | return $this->executeUpdateWishlistTransaction($wishlistTransfer); |
122 | 122 | }); |
123 | 123 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | $wishlistTransfer->requireIdWishlist(); |
171 | 171 | |
172 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
172 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
173 | 173 | return $this->executeRemoveWishlistTransaction($wishlistTransfer); |
174 | 174 | }); |
175 | 175 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | ->requireName() |
201 | 201 | ->requireFkCustomer(); |
202 | 202 | |
203 | - return $this->handleDatabaseTransaction(function () use ($wishlistTransfer) { |
|
203 | + return $this->handleDatabaseTransaction(function() use ($wishlistTransfer) { |
|
204 | 204 | return $this->executeRemoveWishlistByNameTransaction($wishlistTransfer); |
205 | 205 | }); |
206 | 206 | } |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | */ |
316 | 316 | public function removeItemCollection(WishlistItemCollectionTransfer $wishlistItemTransferCollection) |
317 | 317 | { |
318 | - return $this->handleDatabaseTransaction(function () use ($wishlistItemTransferCollection) { |
|
318 | + return $this->handleDatabaseTransaction(function() use ($wishlistItemTransferCollection) { |
|
319 | 319 | return $this->executeRemoveItemCollectionTransaction($wishlistItemTransferCollection); |
320 | 320 | }); |
321 | 321 | } |
@@ -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]', |