@@ -106,7 +106,7 @@ |
||
| 106 | 106 | { |
| 107 | 107 | $items = $this->getDiscountableItems( |
| 108 | 108 | [ |
| 109 | - self::ITEM_GROSS_PRICE_1000, |
|
| 109 | + self::ITEM_GROSS_PRICE_1000, |
|
| 110 | 110 | ] |
| 111 | 111 | ); |
| 112 | 112 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 45 | 45 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 46 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 46 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 47 | 47 | return $clauseTransfer->getOperator() === '=' ? true : false; |
| 48 | 48 | }); |
| 49 | 49 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 70 | 70 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 71 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 71 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 72 | 72 | return $clauseTransfer->getOperator() === '=' ? true : false; |
| 73 | 73 | }); |
| 74 | 74 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 95 | 95 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 96 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 96 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 97 | 97 | return $clauseTransfer->getOperator() === '=' ? true : false; |
| 98 | 98 | }); |
| 99 | 99 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 125 | 125 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 126 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 126 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 127 | 127 | if ($clauseTransfer->getOperator() === '=' || $clauseTransfer->getOperator() === 'is in') { |
| 128 | 128 | return true; |
| 129 | 129 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 153 | 153 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 154 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 154 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 155 | 155 | if ($clauseTransfer->getOperator() === '=') { |
| 156 | 156 | return true; |
| 157 | 157 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 178 | 178 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 179 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 179 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 180 | 180 | if ($clauseTransfer->getOperator() === '=') { |
| 181 | 181 | return true; |
| 182 | 182 | } |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | $createComparatorOperatorsMock = $this->createComparatorOperatorsMock(); |
| 217 | 217 | $createComparatorOperatorsMock->method('isExistingComparator') |
| 218 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
| 218 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
| 219 | 219 | if ($clauseTransfer->getOperator() === '=') { |
| 220 | 220 | return true; |
| 221 | 221 | } |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | protected function createDecisionRulePlugins() |
| 159 | 159 | { |
| 160 | 160 | return [ |
| 161 | - new SkuDecisionRulePlugin(), |
|
| 161 | + new SkuDecisionRulePlugin(), |
|
| 162 | 162 | ]; |
| 163 | 163 | } |
| 164 | 164 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $discountQueryContainerMock = $this->createDiscountQueryContainerMock(); |
| 49 | 49 | $discountQueryContainerMock->method('queryVoucherPoolByVoucherCodes') |
| 50 | - ->willReturn($discountQueryMock); |
|
| 50 | + ->willReturn($discountQueryMock); |
|
| 51 | 51 | |
| 52 | 52 | $voucherCode = $this->createVoucherCode($discountQueryContainerMock); |
| 53 | 53 | $updated = $voucherCode->useCodes(['123']); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | protected function getFunction() |
| 29 | 29 | { |
| 30 | - return function ($url, $title, $options = []) { |
|
| 30 | + return function($url, $title, $options = []) { |
|
| 31 | 31 | if (!array_key_exists(ButtonUrlGenerator::ICON, $options)) { |
| 32 | 32 | $options[ButtonUrlGenerator::ICON] = $this->getIcon(); |
| 33 | 33 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $this->assertProductGroupForUpdate($productGroupTransfer); |
| 41 | 41 | |
| 42 | - $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
| 42 | + $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
| 43 | 43 | $this->executeUpdateProductGroupTransaction($productGroupTransfer); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -170,7 +170,7 @@ |
||
| 170 | 170 | */ |
| 171 | 171 | public function createSubtotalCalculator() |
| 172 | 172 | { |
| 173 | - return new SubtotalCalculator(); |
|
| 173 | + return new SubtotalCalculator(); |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | { |
| 49 | 49 | $this->assertProductGroupForExtension($productGroupTransfer); |
| 50 | 50 | |
| 51 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
| 51 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
| 52 | 52 | return $this->executeExtendProductGroupTransaction($productGroupTransfer); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $this->assertProductGroupForUpdate($productGroupTransfer); |
| 50 | 50 | |
| 51 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
| 51 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
| 52 | 52 | return $this->executeUpdateProductGroupTransaction($productGroupTransfer); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $this->assertProductGroupForUpdate($productGroupTransfer); |
| 64 | 64 | |
| 65 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
| 65 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
| 66 | 66 | return $this->executeUpdateProductGroupTransaction($productGroupTransfer); |
| 67 | 67 | }); |
| 68 | 68 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | return $productGroupTransfer; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
| 46 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
| 47 | 47 | return $this->executeCreateProductGroupTransaction($productGroupTransfer); |
| 48 | 48 | }); |
| 49 | 49 | } |