Passed
Push — bugfix/supesc-213-is-capture-a... ( b6d348...db0ba1 )
by Anton
16:04
created
Heidelpay/Business/Payment/Transaction/Handler/DebitTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 class DebitTransactionHandler implements DebitTransactionHandlerInterface
18 18
 {
19 19
     public const ERROR_MESSAGE_DEBIT_TRANSACTION_NOT_SUPPORTED =
20
-        'Attempt to call debit transaction on payment method \'%s\' ' .
20
+        'Attempt to call debit transaction on payment method \'%s\' '.
21 21
         'that does not support it';
22 22
 
23 23
     /**
Please login to merge, or discard this patch.
Business/Payment/Transaction/Handler/ExternalResponseTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 class ExternalResponseTransactionHandler implements ExternalResponseTransactionHandlerInterface
20 20
 {
21 21
     public const ERROR_MESSAGE_EXTERNAL_RESPONSE_TRANSACTION_NOT_SUPPORTED =
22
-        'Attempt to call external response transaction on payment method \'%s\' ' .
22
+        'Attempt to call external response transaction on payment method \'%s\' '.
23 23
         'that does not support it';
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
Business/Payment/Transaction/Handler/ReservationTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class ReservationTransactionHandler implements ReservationTransactionHandlerInterface
17 17
 {
18 18
     public const ERROR_MESSAGE_RESERVATION_TRANSACTION_NOT_SUPPORTED =
19
-        'Attempt to call reservation transaction on payment method \'%s\' ' .
19
+        'Attempt to call reservation transaction on payment method \'%s\' '.
20 20
         'that does not support it';
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Business/Payment/Transaction/Handler/InitializeTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class InitializeTransactionHandler implements InitializeTransactionHandlerInterface
17 17
 {
18 18
     public const ERROR_MESSAGE_INITIALIZE_TRANSACTION_NOT_SUPPORTED =
19
-        'Attempt to call initialize transaction on payment method \'%s\' ' .
19
+        'Attempt to call initialize transaction on payment method \'%s\' '.
20 20
         'that does not support it';
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Business/Payment/Transaction/Handler/FinalizeTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class FinalizeTransactionHandler implements FinalizeTransactionHandlerInterface
17 17
 {
18 18
     public const ERROR_MESSAGE_FINALIZE_TRANSACTION_NOT_SUPPORTED =
19
-        'Attempt to call finalize transaction on payment method \'%s\' ' .
19
+        'Attempt to call finalize transaction on payment method \'%s\' '.
20 20
         'that does not support it';
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
SprykerEco/Yves/Heidelpay/Hydrator/EasyCreditResponseToQuoteHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@
 block discarded – undo
61 61
             ->setAmortisationText($responseAsArray[static::EASYCREDIT_AMORTISATION_TEXT])
62 62
             ->setPreContractionInformationUrl($responseAsArray[static::EASYCREDIT_PRECONTRACT_INFORMATION_URL])
63 63
             ->setAccruingInterest(
64
-                $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_ACCRUING_INTEREST])
64
+                $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_ACCRUING_INTEREST])
65 65
             )
66 66
             ->setTotalAmount(
67
-                $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_TOTAL_AMOUNT])
67
+                $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_TOTAL_AMOUNT])
68 68
             )
69 69
             ->setTotalOrderAmount(
70
-                $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_TOTAL_ORDER_AMOUNT])
70
+                $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_TOTAL_ORDER_AMOUNT])
71 71
             );
72 72
 
73 73
         $quoteTransfer->setPayment($paymentTransfer);
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Heidelpay/Business/Mapper/QuoteToHeidelpayRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
         $heidelpayRequestTransfer->setRiskInformation(
91 91
             (new HeidelpayRiskInformationTransfer())
92
-                ->setIsCustomerGuest((bool)$quoteTransfer->getCustomer()->getIsGuest())
92
+                ->setIsCustomerGuest((bool) $quoteTransfer->getCustomer()->getIsGuest())
93 93
                 ->setCustomerSince($customerRegistrationDate)
94 94
                 ->setCustomerId($quoteTransfer->getCustomer()->getIdCustomer())
95 95
         );
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Heidelpay/Business/Order/Saver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function saveOrderPayment(QuoteTransfer $quoteTransfer, SaveOrderTransfer $saveOrderTransfer): void
50 50
     {
51
-        $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer, $saveOrderTransfer) {
51
+        $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer, $saveOrderTransfer) {
52 52
             $this->executeSavePaymentForOrderAndItemsTransaction($quoteTransfer, $saveOrderTransfer);
53 53
         });
54 54
     }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     protected function addEasyCreditFee(QuoteTransfer $quoteTransfer, SpyPaymentHeidelpay $paymentEntity): SpyPaymentHeidelpay
168 168
     {
169 169
         $paymentEntity->setEasyCreditFee(
170
-            (int)$quoteTransfer->getPayment()->getHeidelpayEasyCredit()->getAccruingInterest()
170
+            (int) $quoteTransfer->getPayment()->getHeidelpayEasyCredit()->getAccruingInterest()
171 171
         );
172 172
 
173 173
         return $paymentEntity;
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/Form/EasyCreditSubForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function getTemplatePath(): string
60 60
     {
61
-        return HeidelpayConfig::PROVIDER_NAME . DIRECTORY_SEPARATOR . static::PAYMENT_METHOD_TEMPLATE_PATH;
61
+        return HeidelpayConfig::PROVIDER_NAME.DIRECTORY_SEPARATOR.static::PAYMENT_METHOD_TEMPLATE_PATH;
62 62
     }
63 63
 
64 64
     /**
Please login to merge, or discard this patch.