Passed
Push — dev ( f4f83b...145cb3 )
by Mykyta
04:13
created
src/SprykerEco/Shared/Heidelpay/QuoteUniqueIdGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
             ->requireCustomer()
23 23
             ->getTotals();
24 24
 
25
-        return sha1($quoteTransfer->getCustomer()->getEmail() . $quoteTransfer->getTotals()->getHash());
25
+        return sha1($quoteTransfer->getCustomer()->getEmail().$quoteTransfer->getTotals()->getHash());
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/SprykerEco/Shared/Heidelpay/HeidelpayConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 {
12 12
     const PROVIDER_NAME = 'heidelpay';
13 13
 
14
-    const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME . 'Sofort';
15
-    const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME . 'CreditCardSecure';
16
-    const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME . 'PaypalAuthorize';
17
-    const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME . 'PaypalDebit';
18
-    const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME . 'Ideal';
14
+    const PAYMENT_METHOD_SOFORT = self::PROVIDER_NAME.'Sofort';
15
+    const PAYMENT_METHOD_CREDIT_CARD_SECURE = self::PROVIDER_NAME.'CreditCardSecure';
16
+    const PAYMENT_METHOD_PAYPAL_AUTHORIZE = self::PROVIDER_NAME.'PaypalAuthorize';
17
+    const PAYMENT_METHOD_PAYPAL_DEBIT = self::PROVIDER_NAME.'PaypalDebit';
18
+    const PAYMENT_METHOD_IDEAL = self::PROVIDER_NAME.'Ideal';
19 19
 
20 20
     const PAYMENT_OPTION_NEW_REGISTRATION = 'new-registration';
21 21
     const PAYMENT_OPTION_EXISTING_REGISTRATION = 'existing-registration';
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
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
      */
29 29
     public function provideServiceLayerDependencies(Container $container)
30 30
     {
31
-        $container[static::CLIENT_LOCALE] = function (Container $container) {
31
+        $container[static::CLIENT_LOCALE] = function(Container $container) {
32 32
             return new HeidelpayToLocaleBridge($container->getLocator()->locale()->client());
33 33
         };
34 34
 
35
-        $container[static::CLIENT_QUOTE] = function (Container $container) {
35
+        $container[static::CLIENT_QUOTE] = function(Container $container) {
36 36
             return new HeidelpayToQuoteBridge($container->getLocator()->quote()->client());
37 37
         };
38 38
 
39
-        $container[static::CLIENT_ZED_REQUEST] = function (Container $container) {
39
+        $container[static::CLIENT_ZED_REQUEST] = function(Container $container) {
40 40
             return $container->getLocator()->zedRequest()->client();
41 41
         };
42 42
 
Please login to merge, or discard this patch.
Zed/Heidelpay/Business/Adapter/Mapper/ResponsePayloadToApiResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function getRequestParameterObject($parameterGroup, Response $heidelpayResponse)
69 69
     {
70
-        $getParameterMethod = 'get' . ucfirst($parameterGroup);
70
+        $getParameterMethod = 'get'.ucfirst($parameterGroup);
71 71
 
72 72
         if (!method_exists($heidelpayResponse, $getParameterMethod)) {
73 73
             return null;
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function getTransactionPayloadArray($transactionPayload)
99 99
     {
100
-        return (array)$this->utilEncoding->decodeJson($transactionPayload, true);
100
+        return (array) $this->utilEncoding->decodeJson($transactionPayload, true);
101 101
     }
102 102
 }
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
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         $responseTransfer->setIsPending($apiResponse->isPending())
60 60
             ->setIsSuccess($apiResponse->isSuccess())
61
-            ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId())
61
+            ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId())
62 62
             ->setIsError($apiResponse->isError())
63 63
             ->setIdPaymentReference($apiResponse->getPaymentReferenceId())
64 64
             ->setProcessingCode($apiResponse->getProcessing()->code)
Please login to merge, or discard this patch.
Heidelpay/Business/Payment/Transaction/Handler/DebitTransactionHandler.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 DebitTransactionHandler implements DebitTransactionHandlerInterface
16 16
 {
17 17
     const ERROR_MESSAGE_DEBIT_TRANSACTION_NOT_SUPPORTED =
18
-        'Attempt to call debit transaction on payment method \'%s\' ' .
18
+        'Attempt to call debit transaction on payment method \'%s\' '.
19 19
         'that does not support it';
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
Business/Payment/Transaction/Handler/CaptureTransactionHandler.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 CaptureTransactionHandler implements CaptureTransactionHandlerInterface
16 16
 {
17 17
     const ERROR_MESSAGE_CAPTURE_TRANSACTION_NOT_SUPPORTED =
18
-        'Attempt to call capture transaction on payment method \'%s\' ' .
18
+        'Attempt to call capture transaction on payment method \'%s\' '.
19 19
         'that does not support it';
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
Business/Payment/Transaction/Handler/AuthorizeTransactionHandler.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 AuthorizeTransactionHandler implements AuthorizeTransactionHandlerInterface
16 16
 {
17 17
     const ERROR_MESSAGE_AUTHORIZE_TRANSACTION_NOT_SUPPORTED =
18
-        'Attempt to call authorize transaction on payment method \'%s\' ' .
18
+        'Attempt to call authorize transaction on payment method \'%s\' '.
19 19
         'that does not support it';
20 20
     /**
21 21
      * @var \SprykerEco\Zed\Heidelpay\Business\Payment\Transaction\AuthorizeTransactionInterface
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
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 class ExternalResponseTransactionHandler implements ExternalResponseTransactionHandlerInterface
19 19
 {
20 20
     const ERROR_MESSAGE_EXTERNAL_RESPONSE_TRANSACTION_NOT_SUPPORTED =
21
-        'Attempt to call external response transaction on payment method \'%s\' ' .
21
+        'Attempt to call external response transaction on payment method \'%s\' '.
22 22
         'that does not support it';
23 23
 
24 24
     /**
Please login to merge, or discard this patch.