@@ -73,7 +73,7 @@ |
||
| 73 | 73 | protected function createBirthdayConstraint() |
| 74 | 74 | { |
| 75 | 75 | return new Callback([ |
| 76 | - 'callback' => function ($date, ExecutionContextInterface $context) { |
|
| 76 | + 'callback' => function($date, ExecutionContextInterface $context) { |
|
| 77 | 77 | if (strtotime($date) > strtotime(self::MIN_BIRTHDAY_DATE_STRING)) { |
| 78 | 78 | $context->addViolation('checkout.step.payment.must_be_older_than_18_years'); |
| 79 | 79 | } |
@@ -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 | |
@@ -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 | } |
@@ -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 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | { |
| 54 | 54 | $giftCardPayments = $this->giftCardReader->getGiftCardPaymentsForOrder($idSalesOrder); |
| 55 | 55 | |
| 56 | - $this->handleDatabaseTransaction(function () use ($giftCardPayments) { |
|
| 56 | + $this->handleDatabaseTransaction(function() use ($giftCardPayments) { |
|
| 57 | 57 | $this->replaceGiftCardsTransaction($giftCardPayments); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -181,7 +181,7 @@ |
||
| 181 | 181 | public function configureOptions(OptionsResolver $resolver) |
| 182 | 182 | { |
| 183 | 183 | $resolver->setDefaults([ |
| 184 | - 'validation_groups' => function (FormInterface $form) { |
|
| 184 | + 'validation_groups' => function(FormInterface $form) { |
|
| 185 | 185 | return [ |
| 186 | 186 | Constraint::DEFAULT_GROUP, |
| 187 | 187 | $form->get(static::PAYMENT_SELECTION)->getData(), |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | ->filterBySku($sku) |
| 113 | 113 | ->endUse() |
| 114 | 114 | ->useStockQuery() |
| 115 | - ->filterByName($type) |
|
| 115 | + ->filterByName($type) |
|
| 116 | 116 | ->endUse(); |
| 117 | 117 | |
| 118 | 118 | return $query; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $query = $this->queryAllStockProducts(); |
| 132 | 132 | $query |
| 133 | 133 | ->useSpyProductQuery() |
| 134 | - ->filterBySku($sku) |
|
| 134 | + ->filterBySku($sku) |
|
| 135 | 135 | ->endUse() |
| 136 | 136 | ->useStockQuery() |
| 137 | 137 | ->filterByName($types, Criteria::IN) |
@@ -248,12 +248,12 @@ discard block |
||
| 248 | 248 | public function queryStockByIdProductAndTypes($idProduct, array $types) |
| 249 | 249 | { |
| 250 | 250 | return $this->queryStockByProducts($idProduct) |
| 251 | - ->useStockQuery() |
|
| 252 | - ->withColumn(SpyStockTableMap::COL_NAME, 'stockType') |
|
| 253 | - ->filterByName($types, Criteria::IN) |
|
| 254 | - ->endUse() |
|
| 255 | - ->useSpyProductQuery() |
|
| 256 | - ->withColumn(SpyProductTableMap::COL_SKU, 'sku') |
|
| 257 | - ->endUse(); |
|
| 251 | + ->useStockQuery() |
|
| 252 | + ->withColumn(SpyStockTableMap::COL_NAME, 'stockType') |
|
| 253 | + ->filterByName($types, Criteria::IN) |
|
| 254 | + ->endUse() |
|
| 255 | + ->useSpyProductQuery() |
|
| 256 | + ->withColumn(SpyProductTableMap::COL_SKU, 'sku') |
|
| 257 | + ->endUse(); |
|
| 258 | 258 | } |
| 259 | 259 | } |