@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $this->debugSection('Discount Id', $idDiscount); |
81 | 81 | |
82 | 82 | $cleanupModule = $this->getDataCleanupHelper(); |
83 | - $cleanupModule->_addCleanup(function () use ($idDiscount): void { |
|
83 | + $cleanupModule->_addCleanup(function() use ($idDiscount): void { |
|
84 | 84 | $this->debug('Deleting Discount: ' . $idDiscount); |
85 | 85 | SpyDiscountAmountQuery::create()->findByFkDiscount($idDiscount)->delete(); |
86 | 86 | $this->getDiscountQuery()->queryDiscount()->findByIdDiscount($idDiscount)->delete(); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ->setName($name); |
118 | 118 | $discountVoucherPoolEntity->save(); |
119 | 119 | |
120 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($discountVoucherPoolEntity): void { |
|
120 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($discountVoucherPoolEntity): void { |
|
121 | 121 | $this->cleanupDiscountVoucherPool($discountVoucherPoolEntity); |
122 | 122 | }); |
123 | 123 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ->setMinimumItemAmount($discountMinimumItemAmount); |
140 | 140 | $discountEntity->save(); |
141 | 141 | |
142 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($discountEntity): void { |
|
142 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($discountEntity): void { |
|
143 | 143 | $this->cleanupDiscount($discountEntity); |
144 | 144 | }); |
145 | 145 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | ->setFkDiscount($discountTransfer->getIdDiscount()); |
160 | 160 | $discountStoreEntity->save(); |
161 | 161 | |
162 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($discountStoreEntity): void { |
|
162 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($discountStoreEntity): void { |
|
163 | 163 | $this->cleanupDiscountStore($discountStoreEntity); |
164 | 164 | }); |
165 | 165 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $discountAmountEntity = (new SpyDiscountAmount())->fromArray($discountMoneyAmountTransfer->toArray()); |
179 | 179 | $discountAmountEntity->save(); |
180 | 180 | |
181 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($discountAmountEntity): void { |
|
181 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($discountAmountEntity): void { |
|
182 | 182 | $this->cleanupDiscountAmount($discountAmountEntity); |
183 | 183 | }); |
184 | 184 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | $voucherEntity->setIsActive(true); |
202 | 202 | $voucherEntity->save(); |
203 | 203 | |
204 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($voucherEntity): void { |
|
204 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($voucherEntity): void { |
|
205 | 205 | $this->debug('Deleting Discount Voucher: ' . $voucherEntity->getIdDiscountVoucher()); |
206 | 206 | $voucherEntity->delete(); |
207 | 207 | }); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $salesDiscountEntity->fromArray($data); |
253 | 253 | $salesDiscountEntity->save(); |
254 | 254 | |
255 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($salesDiscountEntity): void { |
|
255 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($salesDiscountEntity): void { |
|
256 | 256 | $this->debug('Deleting Discount: ' . $salesDiscountEntity->getIdSalesDiscount()); |
257 | 257 | $salesDiscountEntity->delete(); |
258 | 258 | }); |