@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function handleUrlCreation(UrlTransfer $urlTransfer) |
48 | 48 | { |
49 | - $this->getTransactionHandler()->handleTransaction(function () use ($urlTransfer): void { |
|
49 | + $this->getTransactionHandler()->handleTransaction(function() use ($urlTransfer): void { |
|
50 | 50 | $this->handleRedirectAppend($urlTransfer); |
51 | 51 | }); |
52 | 52 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | return; |
64 | 64 | } |
65 | 65 | |
66 | - $this->getTransactionHandler()->handleTransaction(function () use ($urlTransfer): void { |
|
66 | + $this->getTransactionHandler()->handleTransaction(function() use ($urlTransfer): void { |
|
67 | 67 | $this->handleRedirectAppend($urlTransfer); |
68 | 68 | }); |
69 | 69 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function deleteUrl(UrlTransfer $urlTransfer) |
61 | 61 | { |
62 | - $this->getTransactionHandler()->handleTransaction(function () use ($urlTransfer): void { |
|
62 | + $this->getTransactionHandler()->handleTransaction(function() use ($urlTransfer): void { |
|
63 | 63 | $this->executeDeleteUrlTransaction($urlTransfer); |
64 | 64 | }); |
65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function deleteUrlRedirect(UrlRedirectTransfer $urlRedirectTransfer) |
73 | 73 | { |
74 | - $this->getTransactionHandler()->handleTransaction(function () use ($urlRedirectTransfer): void { |
|
74 | + $this->getTransactionHandler()->handleTransaction(function() use ($urlRedirectTransfer): void { |
|
75 | 75 | $this->executeDeleteUrlRedirectTransaction($urlRedirectTransfer); |
76 | 76 | }); |
77 | 77 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | $this->assertUrlTransferForUpdate($urlTransfer); |
57 | 57 | |
58 | - return $this->getTransactionHandler()->handleTransaction(function () use ($urlTransfer): UrlTransfer { |
|
58 | + return $this->getTransactionHandler()->handleTransaction(function() use ($urlTransfer): UrlTransfer { |
|
59 | 59 | return $this->executeUpdateUrlTransaction($urlTransfer); |
60 | 60 | }); |
61 | 61 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | { |
53 | 53 | $this->assertUrlTransferForCreate($urlTransfer); |
54 | 54 | |
55 | - return $this->getTransactionHandler()->handleTransaction(function () use ($urlTransfer): UrlTransfer { |
|
55 | + return $this->getTransactionHandler()->handleTransaction(function() use ($urlTransfer): UrlTransfer { |
|
56 | 56 | return $this->executeCreateUrlTransaction($urlTransfer); |
57 | 57 | }); |
58 | 58 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $productConcreteTransfer->requireIdProductConcrete(); |
47 | 47 | |
48 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productConcreteTransfer): ProductConcreteTransfer { |
|
48 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productConcreteTransfer): ProductConcreteTransfer { |
|
49 | 49 | return $this->executePersistProductSearchTransaction($productConcreteTransfer); |
50 | 50 | }); |
51 | 51 | } |
@@ -240,7 +240,7 @@ |
||
240 | 240 | $uniquePlaceholder = $placeholder . '-' . $pageTransfer->getIdCmsPage(); |
241 | 241 | $keyName = $this->generateGlossaryKeyName($template->getTemplateName(), $uniquePlaceholder, $autoGlossaryKeyIncrement); |
242 | 242 | |
243 | - return $this->getTransactionHandler()->handleTransaction(function () use ($pageTransfer, $placeholder, $keyName, $value, $localeTransfer): PageKeyMappingTransfer { |
|
243 | + return $this->getTransactionHandler()->handleTransaction(function() use ($pageTransfer, $placeholder, $keyName, $value, $localeTransfer): PageKeyMappingTransfer { |
|
244 | 244 | return $this->executeAddPlaceholderTextTransaction($pageTransfer, $placeholder, $keyName, $value, $localeTransfer); |
245 | 245 | }); |
246 | 246 | } |
@@ -328,7 +328,7 @@ |
||
328 | 328 | */ |
329 | 329 | public function savePageUrlAndTouch(PageTransfer $pageTransfer): UrlTransfer |
330 | 330 | { |
331 | - return $this->getTransactionHandler()->handleTransaction(function (PageTransfer $pageTransfer): UrlTransfer { |
|
331 | + return $this->getTransactionHandler()->handleTransaction(function(PageTransfer $pageTransfer): UrlTransfer { |
|
332 | 332 | return $this->executeSavePageUrlAndTouchTransaction($pageTransfer); |
333 | 333 | }); |
334 | 334 | } |
@@ -241,7 +241,7 @@ |
||
241 | 241 | */ |
242 | 242 | public function saveProductImageSet(ProductImageSetTransfer $productImageSetTransfer) |
243 | 243 | { |
244 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productImageSetTransfer): ProductImageSetTransfer { |
|
244 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productImageSetTransfer): ProductImageSetTransfer { |
|
245 | 245 | return $this->executeSaveProductImageSetTransaction($productImageSetTransfer); |
246 | 246 | }); |
247 | 247 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function add(CustomerGroupTransfer $customerGroupTransfer) |
82 | 82 | { |
83 | - return $this->getTransactionHandler()->handleTransaction(function () use ($customerGroupTransfer): CustomerGroupTransfer { |
|
83 | + return $this->getTransactionHandler()->handleTransaction(function() use ($customerGroupTransfer): CustomerGroupTransfer { |
|
84 | 84 | return $this->executeAddTransaction($customerGroupTransfer); |
85 | 85 | }); |
86 | 86 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function update(CustomerGroupTransfer $customerGroupTransfer) |
94 | 94 | { |
95 | - $this->getTransactionHandler()->handleTransaction(function () use ($customerGroupTransfer): void { |
|
95 | + $this->getTransactionHandler()->handleTransaction(function() use ($customerGroupTransfer): void { |
|
96 | 96 | $this->executeUpdateTransaction($customerGroupTransfer); |
97 | 97 | }); |
98 | 98 | } |
@@ -142,8 +142,7 @@ discard block |
||
142 | 142 | protected function saveCustomers(CustomerGroupTransfer $customerGroupTransfer, SpyCustomerGroup $customerGroupEntity) |
143 | 143 | { |
144 | 144 | $idsCustomerToAssign = $customerGroupTransfer->getCustomerAssignment() ? |
145 | - $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToAssign() : |
|
146 | - []; |
|
145 | + $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToAssign() : []; |
|
147 | 146 | |
148 | 147 | foreach ($idsCustomerToAssign as $idCustomerToAssign) { |
149 | 148 | $customerGroupToCustomerEntity = new SpyCustomerGroupToCustomer(); |
@@ -202,8 +201,7 @@ discard block |
||
202 | 201 | ->requireIdCustomerGroup(); |
203 | 202 | |
204 | 203 | $idsCustomerToDeAssign = $customerGroupTransfer->getCustomerAssignment() ? |
205 | - $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToDeAssign() : |
|
206 | - []; |
|
204 | + $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToDeAssign() : []; |
|
207 | 205 | |
208 | 206 | foreach ($idsCustomerToDeAssign as $idCustomer) { |
209 | 207 | $customerEntity = $this->queryContainer |