Completed
Pull Request — master (#29)
by Aleksey
12:08 queued 06:33
created
src/SprykerEco/Shared/Heidelpay/HeidelpayConfig.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 
14 14
     public const HEIDELPAY_EASY_CREDIT_PAYMENT_METHOD = 'heidelpayEasyCredit';
15 15
 
16
-    public const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME . 'Sofort';
17
-    public const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME . 'CreditCardSecure';
18
-    public const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME . 'PaypalAuthorize';
19
-    public const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME . 'PaypalDebit';
20
-    public const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME . 'Ideal';
21
-    public const PAYMENT_METHOD_EASY_CREDIT = self::PROVIDER_NAME . 'EasyCredit';
16
+    public const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME.'Sofort';
17
+    public const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME.'CreditCardSecure';
18
+    public const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME.'PaypalAuthorize';
19
+    public const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME.'PaypalDebit';
20
+    public const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME.'Ideal';
21
+    public const PAYMENT_METHOD_EASY_CREDIT = self::PROVIDER_NAME.'EasyCredit';
22 22
 
23 23
     public const PAYMENT_OPTION_NEW_REGISTRATION = 'new-registration';
24 24
     public const PAYMENT_OPTION_EXISTING_REGISTRATION = 'existing-registration';
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Heidelpay/HeidelpayDependencyProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,23 +32,23 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function provideBusinessLayerDependencies(Container $container): Container
34 34
     {
35
-        $container[static::FACADE_CURRENCY] = function (Container $container) {
35
+        $container[static::FACADE_CURRENCY] = function(Container $container) {
36 36
             return new HeidelpayToCurrencyFacadeBridge($container->getLocator()->currency()->facade());
37 37
         };
38 38
 
39
-        $container[static::FACADE_MONEY] = function (Container $container) {
39
+        $container[static::FACADE_MONEY] = function(Container $container) {
40 40
             return new HeidelpayToMoneyFacadeBridge($container->getLocator()->money()->facade());
41 41
         };
42 42
 
43
-        $container[self::FACADE_SALES] = function (Container $container) {
43
+        $container[self::FACADE_SALES] = function(Container $container) {
44 44
             return new HeidelpayToSalesFacadeBridge($container->getLocator()->sales()->facade());
45 45
         };
46 46
 
47
-        $container[self::QUERY_CONTAINER_SALES] = function (Container $container) {
47
+        $container[self::QUERY_CONTAINER_SALES] = function(Container $container) {
48 48
             return new HeidelpayToSalesQueryContainerBridge($container->getLocator()->sales()->queryContainer());
49 49
         };
50 50
 
51
-        $container[self::SERVICE_UTIL_ENCODING] = function (Container $container) {
51
+        $container[self::SERVICE_UTIL_ENCODING] = function(Container $container) {
52 52
             return new HeidelpayToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service());
53 53
         };
54 54
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function provideCommunicationLayerDependencies(Container $container): Container
64 64
     {
65
-        $container[self::FACADE_SALES] = function (Container $container) {
65
+        $container[self::FACADE_SALES] = function(Container $container) {
66 66
             return new HeidelpayToSalesFacadeBridge($container->getLocator()->sales()->facade());
67 67
         };
68 68
 
Please login to merge, or discard this patch.
SprykerEco/Zed/Heidelpay/Business/Adapter/Mapper/ResponseFromHeidelpay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         $responseTransfer->setIsPending($apiResponse->isPending())
61 61
             ->setIsSuccess($apiResponse->isSuccess())
62
-            ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId())
62
+            ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId())
63 63
             ->setIsError($apiResponse->isError())
64 64
             ->setProcessingCode($apiResponse->getProcessing()->code)
65 65
             ->setIdTransactionUnique($apiResponse->getIdentification()->getUniqueId())
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.
Payment/Transaction/Handler/AuthorizeOnRegistrationTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 class AuthorizeOnRegistrationTransactionHandler implements AuthorizeOnRegistrationTransactionHandlerInterface
16 16
 {
17 17
     public const ERROR_MESSAGE_AUTHORIZE_ON_REGISTRATION_TRANSACTION_NOT_SUPPORTED =
18
-        'Attempt to call authorize on registration transaction on payment method \'%s\' ' .
18
+        'Attempt to call authorize on registration transaction on payment method \'%s\' '.
19 19
         'that does not support it';
20 20
     /**
21 21
      * @var \SprykerEco\Zed\Heidelpay\Business\Payment\Transaction\AuthorizeOnRegistrationTransactionInterface
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/Client/Heidelpay/HeidelpayDependencyProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
     {
31 31
         $container = parent::provideServiceLayerDependencies($container);
32 32
 
33
-        $container[static::CLIENT_LOCALE] = function (Container $container) {
33
+        $container[static::CLIENT_LOCALE] = function(Container $container) {
34 34
             return new HeidelpayToLocaleClientBridge($container->getLocator()->locale()->client());
35 35
         };
36 36
 
37
-        $container[static::CLIENT_QUOTE] = function (Container $container) {
37
+        $container[static::CLIENT_QUOTE] = function(Container $container) {
38 38
             return new HeidelpayToQuoteClientBridge($container->getLocator()->quote()->client());
39 39
         };
40 40
 
41
-        $container[static::CLIENT_ZED_REQUEST] = function (Container $container) {
41
+        $container[static::CLIENT_ZED_REQUEST] = function(Container $container) {
42 42
             return $container->getLocator()->zedRequest()->client();
43 43
         };
44 44
 
Please login to merge, or discard this patch.