@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $merchantRelationshipTransfer = $this->createOrUpdateMerchantRelationship($merchantRelationshipTransfer); |
32 | 32 | |
33 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($merchantRelationshipTransfer): void { |
|
33 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($merchantRelationshipTransfer): void { |
|
34 | 34 | $this->cleanupMerchantRelationship($merchantRelationshipTransfer); |
35 | 35 | }); |
36 | 36 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $categoryTransfer->addImageSet($categoryImageSetTransfer); |
45 | 45 | $this->getCategoryImageFacade()->createCategoryImageSetsForCategory($categoryTransfer); |
46 | 46 | |
47 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($categoryImageSetTransfer): void { |
|
47 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($categoryImageSetTransfer): void { |
|
48 | 48 | $this->cleanupCategoryImageSet($categoryImageSetTransfer); |
49 | 49 | }); |
50 | 50 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function registerMoneyCollectionFormTypePlugin(): void |
51 | 51 | { |
52 | - $this->setDependency(ProductManagementDependencyProvider::PLUGIN_MONEY_FORM_TYPE, function () { |
|
52 | + $this->setDependency(ProductManagementDependencyProvider::PLUGIN_MONEY_FORM_TYPE, function() { |
|
53 | 53 | return new MoneyFormTypePlugin(); |
54 | 54 | }); |
55 | 55 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function registerProductManagementStoreRelationFormTypePlugin(): void |
65 | 65 | { |
66 | - $this->setDependency(ProductManagementDependencyProvider::PLUGIN_STORE_RELATION_FORM_TYPE, function () { |
|
66 | + $this->setDependency(ProductManagementDependencyProvider::PLUGIN_STORE_RELATION_FORM_TYPE, function() { |
|
67 | 67 | return new StoreRelationToggleFormTypePlugin(); |
68 | 68 | }); |
69 | 69 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function registerStoreRelationToggleFormTypePlugin(): void |
42 | 42 | { |
43 | - $this->setDependency(DiscountDependencyProvider::PLUGIN_STORE_RELATION_FORM_TYPE, function () { |
|
43 | + $this->setDependency(DiscountDependencyProvider::PLUGIN_STORE_RELATION_FORM_TYPE, function() { |
|
44 | 44 | return new StoreRelationToggleFormTypePlugin(); |
45 | 45 | }); |
46 | 46 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function testDecisionRuleWhenCurrentItemPriceMatchesShouldReturnTrue(): void |
32 | 32 | { |
33 | 33 | $comparatorMock = $this->createComparatorMock(); |
34 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $itemPrice) { |
|
34 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $itemPrice) { |
|
35 | 35 | return $clauseTransfer->getValue() === $itemPrice; |
36 | 36 | }); |
37 | 37 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | $currencyConverterMock = $this->createCurrencyConverterMock(); |
60 | - $currencyConverterMock->method('convertDecimalToCent')->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
60 | + $currencyConverterMock->method('convertDecimalToCent')->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
61 | 61 | return $clauseTransfer->setValue($clauseTransfer->getValue() * 100); |
62 | 62 | }); |
63 | 63 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function testWhenTotalQuantityMatchesClauseShouldReturnTrue(): void |
32 | 32 | { |
33 | 33 | $comparatorMock = $this->createComparatorMock(); |
34 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $grandTotal) { |
|
34 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $grandTotal) { |
|
35 | 35 | return $clauseTransfer->getValue() === $grandTotal; |
36 | 36 | }); |
37 | 37 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function testDecisionRuleWhenPriceModeMatchesShouldReturnTrue(): void |
32 | 32 | { |
33 | 33 | $comparatorMock = $this->createComparatorMock(); |
34 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $currency) { |
|
34 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $currency) { |
|
35 | 35 | return $clauseTransfer->getValue() === $currency; |
36 | 36 | }); |
37 | 37 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function testDecisionRuleWhenCurrentItemQuantityMatchesShouldReturnTrue(): void |
32 | 32 | { |
33 | 33 | $comparatorMock = $this->createComparatorMock(); |
34 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $itemQuantity) { |
|
34 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $itemQuantity) { |
|
35 | 35 | return $clauseTransfer->getValue() === $itemQuantity; |
36 | 36 | }); |
37 | 37 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function testDecisionRuleWhenCurrentItemSkuMatchesShouldReturnTrue(): void |
32 | 32 | { |
33 | 33 | $comparatorMock = $this->createComparatorMock(); |
34 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $itemSku) { |
|
34 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $itemSku) { |
|
35 | 35 | return $clauseTransfer->getValue() === $itemSku; |
36 | 36 | }); |
37 | 37 |