@@ -125,7 +125,7 @@ |
||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $constraints[] = new Callback([ |
| 128 | - 'callback' => function ($name, ExecutionContextInterface $context) use ($customerGroupQuery) { |
|
| 128 | + 'callback' => function($name, ExecutionContextInterface $context) use ($customerGroupQuery) { |
|
| 129 | 129 | if ($customerGroupQuery->findByName($name)->count() > 0) { |
| 130 | 130 | $context->addViolation('Name is already used'); |
| 131 | 131 | } |
@@ -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 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function create(CompanyUnitAddressTransfer $companyUnitAddressTransfer): CompanyUnitAddressResponseTransfer |
| 67 | 67 | { |
| 68 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyUnitAddressTransfer) { |
|
| 68 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyUnitAddressTransfer) { |
|
| 69 | 69 | return $this->executeSaveCompanyUnitAddressTransaction($companyUnitAddressTransfer); |
| 70 | 70 | }); |
| 71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function update(CompanyUnitAddressTransfer $companyUnitAddressTransfer): CompanyUnitAddressResponseTransfer |
| 79 | 79 | { |
| 80 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyUnitAddressTransfer) { |
|
| 80 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyUnitAddressTransfer) { |
|
| 81 | 81 | return $this->executeSaveCompanyUnitAddressTransaction($companyUnitAddressTransfer); |
| 82 | 82 | }); |
| 83 | 83 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function delete(CompanyUnitAddressTransfer $companyUnitAddressTransfer): void |
| 91 | 91 | { |
| 92 | - $this->getTransactionHandler()->handleTransaction(function () use ($companyUnitAddressTransfer) { |
|
| 92 | + $this->getTransactionHandler()->handleTransaction(function() use ($companyUnitAddressTransfer) { |
|
| 93 | 93 | $this->executeDeleteCompanyUnitAddressTransaction($companyUnitAddressTransfer); |
| 94 | 94 | }); |
| 95 | 95 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $reflection = new ReflectionClass(SpyUrlTableMap::class); |
| 52 | 52 | $constants = $reflection->getConstants(); |
| 53 | 53 | |
| 54 | - return array_filter($constants, function ($constant) { |
|
| 54 | + return array_filter($constants, function($constant) { |
|
| 55 | 55 | return strpos($constant, 'fk_resource'); |
| 56 | 56 | }); |
| 57 | 57 | } |