Passed
Pull Request — master (#2)
by Mykyta
04:35 queued 12s
created
Category
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.
src/SprykerEco/Zed/Heidelpay/Dependency/Injector/OmsDependencyInjector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function injectCommands(Container $container)
43 43
     {
44
-        $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function (CommandCollectionInterface $commandCollection) {
44
+        $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function(CommandCollectionInterface $commandCollection) {
45 45
             $commandCollection
46 46
                 ->add(new AuthorizePlugin(), 'Heidelpay/Authorize')
47 47
                 ->add(new DebitPlugin(), 'Heidelpay/Debit')
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected function injectConditions(Container $container)
62 62
     {
63
-        $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function (ConditionCollectionInterface $conditionCollection) {
63
+        $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function(ConditionCollectionInterface $conditionCollection) {
64 64
             $conditionCollection
65 65
                 ->add(new IsAuthorizationCompletedPlugin(), 'Heidelpay/IsAuthorizationCompleted')
66 66
                 ->add(new IsDebitCompletedPlugin(), 'Heidelpay/IsDebitCompleted')
Please login to merge, or discard this patch.
SprykerEco/Zed/Heidelpay/Dependency/Injector/PaymentDependencyInjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     protected function injectPaymentPlugin(Container $container)
38 38
     {
39
-        $container->extend(PaymentDependencyProvider::CHECKOUT_PLUGINS, function (CheckoutPluginCollection $pluginCollection) {
39
+        $container->extend(PaymentDependencyProvider::CHECKOUT_PLUGINS, function(CheckoutPluginCollection $pluginCollection) {
40 40
             $pluginCollection->add(new HeidelpaySaveOrderPlugin(), HeidelpayConfig::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_ORDER_SAVER_PLUGINS);
41 41
             $pluginCollection->add(new HeidelpayPostSavePlugin(), HeidelpayConfig::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_POST_SAVE_PLUGINS);
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.