Passed
Push — master ( e0cd82...d9403f )
by
unknown
30:43
created
tests/SprykerTest/Zed/Discount/_support/DiscountCommunicationTester.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Zed/Discount/Business/DecisionRule/ItemPriceDecisionRuleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Zed/Discount/Business/DecisionRule/TotalQuantityDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Zed/Discount/Business/DecisionRule/PriceModeDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Zed/Discount/Business/DecisionRule/ItemQuantityDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
SprykerTest/Zed/Discount/Business/DecisionRule/ItemSkuDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
SprykerTest/Zed/Discount/Business/DecisionRule/SubtotalDecisionRuleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function testWhenSubTotalMatchesClauseShouldReturnTrue(): void
33 33
     {
34 34
         $comparatorMock = $this->createComparatorMock();
35
-        $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $grandTotal) {
35
+        $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $grandTotal) {
36 36
             return $clauseTransfer->getValue() === $grandTotal;
37 37
         });
38 38
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         }
81 81
 
82 82
         $currencyConverterMock = $this->createCurrencyConverterMock();
83
-        $currencyConverterMock->method('convertDecimalToCent')->willReturnCallback(function (ClauseTransfer $clauseTransfer) {
83
+        $currencyConverterMock->method('convertDecimalToCent')->willReturnCallback(function(ClauseTransfer $clauseTransfer) {
84 84
             return $clauseTransfer->setValue($clauseTransfer->getValue() * 100);
85 85
         });
86 86
 
Please login to merge, or discard this patch.
SprykerTest/Zed/Discount/Business/DecisionRule/CurrencyDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function testDecisionRuleWhenCurrencyMatchesShouldReturnTrue(): 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
 
Please login to merge, or discard this patch.
Zed/ProductOption/Business/OptionGroup/ProductOptionOrderSaverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $salesOrderItemOptionEntityMock
47 47
             ->expects($this->exactly(2))
48 48
             ->method('save')
49
-            ->willReturnCallback(function () use ($salesOrderItemOptionEntityMock): void {
49
+            ->willReturnCallback(function() use ($salesOrderItemOptionEntityMock): void {
50 50
                 $salesOrderItemOptionEntityMock->setIdSalesOrderItemOption(1);
51 51
             });
52 52
 
Please login to merge, or discard this patch.