@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | 'constraints' => [ |
109 | 109 | new NotBlank(), |
110 | 110 | new Callback([ |
111 | - 'callback' => function ($key, ExecutionContextInterface $context) use ($categoryQueryContainer) { |
|
111 | + 'callback' => function($key, ExecutionContextInterface $context) use ($categoryQueryContainer) { |
|
112 | 112 | $data = $context->getRoot()->getData(); |
113 | 113 | |
114 | 114 | $exists = false; |
@@ -217,10 +217,10 @@ discard block |
||
217 | 217 | ]); |
218 | 218 | |
219 | 219 | $builder->get(static::FIELD_EXTRA_PARENTS)->addModelTransformer(new CallbackTransformer( |
220 | - function ($extraParents) { |
|
220 | + function($extraParents) { |
|
221 | 221 | return (array)$extraParents; |
222 | 222 | }, |
223 | - function ($extraParents) { |
|
223 | + function($extraParents) { |
|
224 | 224 | return new ArrayObject($extraParents); |
225 | 225 | } |
226 | 226 | )); |
@@ -172,7 +172,7 @@ |
||
172 | 172 | */ |
173 | 173 | protected function hydrateProductStorageTransfer(array $productData) |
174 | 174 | { |
175 | - //implement, this method is overwritten and provided in demoshop |
|
175 | + //implement, this method is overwritten and provided in demoshop |
|
176 | 176 | return (new StorageProductTransfer())->fromArray($productData, true); |
177 | 177 | } |
178 | 178 |
@@ -43,6 +43,6 @@ |
||
43 | 43 | You should use `AND` in capital letters, otherwise ElasticSearch will mark it as part of searching text. |
44 | 44 | To use different template, add it as second parameter: |
45 | 45 | {{ product_search('is-active:false AND locale:de_DE', 'default') }}. |
46 | -EOT; |
|
46 | +eot; |
|
47 | 47 | } |
48 | 48 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | return; |
48 | 48 | } |
49 | 49 | |
50 | - $this->handleDatabaseTransaction(function () { |
|
50 | + $this->handleDatabaseTransaction(function() { |
|
51 | 51 | $productsBecomingActive = $this->findProductsBecomingActive(); |
52 | 52 | $productsBecomingInactive = $this->findProductsBecomingInactive(); |
53 | 53 |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | |
81 | 81 | $builder->get(self::BUNDLED_PRODUCTS_TO_BE_REMOVED) |
82 | 82 | ->addModelTransformer(new CallbackTransformer( |
83 | - function ($value) { |
|
83 | + function($value) { |
|
84 | 84 | if ($value) { |
85 | 85 | return implode(',', $value); |
86 | 86 | } |
87 | 87 | }, |
88 | - function ($bundledProductsToBeRemoved) { |
|
88 | + function($bundledProductsToBeRemoved) { |
|
89 | 89 | if (!$bundledProductsToBeRemoved) { |
90 | 90 | return []; |
91 | 91 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | ], |
136 | 136 | 'constraints' => [ |
137 | 137 | new Callback([ |
138 | - 'callback' => function ($newFrom, ExecutionContextInterface $context) { |
|
138 | + 'callback' => function($newFrom, ExecutionContextInterface $context) { |
|
139 | 139 | $formData = $context->getRoot()->getData(); |
140 | 140 | |
141 | 141 | if (!$newFrom) { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | ], |
188 | 188 | 'constraints' => [ |
189 | 189 | new Callback([ |
190 | - 'callback' => function ($newTo, ExecutionContextInterface $context) { |
|
190 | + 'callback' => function($newTo, ExecutionContextInterface $context) { |
|
191 | 191 | $formData = $context->getRoot()->getData(); |
192 | 192 | |
193 | 193 | if (!$newTo) { |
@@ -323,14 +323,14 @@ discard block |
||
323 | 323 | $builder |
324 | 324 | ->get($fieldName) |
325 | 325 | ->addModelTransformer(new CallbackTransformer( |
326 | - function ($dateAsString) { |
|
326 | + function($dateAsString) { |
|
327 | 327 | if (!$dateAsString) { |
328 | 328 | return null; |
329 | 329 | } |
330 | 330 | |
331 | 331 | return new DateTime($dateAsString); |
332 | 332 | }, |
333 | - function ($dateAsObject) use ($timeFormat) { |
|
333 | + function($dateAsObject) use ($timeFormat) { |
|
334 | 334 | /** @var \DateTime|null $dateAsObject */ |
335 | 335 | if (!$dateAsObject) { |
336 | 336 | return null; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | protected function getIdStores(ArrayObject $storeTransferCollection) |
63 | 63 | { |
64 | - return array_map(function (StoreTransfer $store) { |
|
64 | + return array_map(function(StoreTransfer $store) { |
|
65 | 65 | return $store->getIdStore(); |
66 | 66 | }, $storeTransferCollection->getArrayCopy()); |
67 | 67 | } |
@@ -287,7 +287,7 @@ |
||
287 | 287 | */ |
288 | 288 | protected function getStoreNames(ArrayObject $stores) |
289 | 289 | { |
290 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
290 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
291 | 291 | return $storeTransfer->getName(); |
292 | 292 | }, $stores->getArrayCopy()); |
293 | 293 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function execute(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse) |
30 | 30 | { |
31 | - $this |
|
31 | + $this |
|
32 | 32 | ->getFacade() |
33 | 33 | ->saveGiftCardPayments($quoteTransfer, $checkoutResponse); |
34 | 34 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | { |
50 | 50 | $giftCardPayments = $this->getGiftCardPayments($quoteTransfer); |
51 | 51 | |
52 | - $this->handleDatabaseTransaction(function () use ($giftCardPayments, $checkoutResponse) { |
|
52 | + $this->handleDatabaseTransaction(function() use ($giftCardPayments, $checkoutResponse) { |
|
53 | 53 | $this->runGiftCardPaymentSavers($giftCardPayments, $checkoutResponse); |
54 | 54 | }); |
55 | 55 | } |