Passed
Pull Request — master (#15)
by Ivan
10:09
created
src/SprykerEco/Zed/Heidelpay/HeidelpayConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public function getMerchantSandboxMode(): bool
46 46
     {
47
-        return (bool)$this->get(HeidelpayConstants::CONFIG_HEIDELPAY_SANDBOX_REQUEST);
47
+        return (bool) $this->get(HeidelpayConstants::CONFIG_HEIDELPAY_SANDBOX_REQUEST);
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Heidelpay/Business/Order/Saver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public function saveOrderPayment(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer): void
49 49
     {
50
-        $this->handleDatabaseTransaction(function () use ($quoteTransfer, $checkoutResponseTransfer) {
50
+        $this->handleDatabaseTransaction(function() use ($quoteTransfer, $checkoutResponseTransfer) {
51 51
             $this->executeSavePaymentForOrderAndItemsTransaction($quoteTransfer, $checkoutResponseTransfer);
52 52
         });
53 53
     }
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): array
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.
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 HeidelpayToCurrencyBridge($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 HeidelpayToMoneyBridge($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 HeidelpayToSalesBridge($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 HeidelpayToSalesBridge($container->getLocator()->sales()->facade());
67 67
         };
68 68
 
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/Controller/CreditCardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
      */
222 222
     protected function streamRedirectResponse(string $redirectUrl): Response
223 223
     {
224
-        $callback = function () use ($redirectUrl) {
224
+        $callback = function() use ($redirectUrl) {
225 225
             echo $redirectUrl;
226 226
         };
227 227
 
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/Controller/HeidelpayController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     protected function streamResponse(HeidelpayPaymentProcessingResponseTransfer $processingResultTransfer): StreamedResponse
81 81
     {
82
-        $callback = function () use ($processingResultTransfer) {
82
+        $callback = function() use ($processingResultTransfer) {
83 83
             echo $this->getCustomerRedirectUrl($processingResultTransfer);
84 84
         };
85 85
 
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/Form/AbstractHeidelpaySubForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
      */
68 68
     public function getTemplatePath(): string
69 69
     {
70
-        return static::PAYMENT_PROVIDER . '/' . static::PAYMENT_METHOD;
70
+        return static::PAYMENT_PROVIDER.'/'.static::PAYMENT_METHOD;
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/HeidelpayDependencyProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@
 block discarded – undo
35 35
      */
36 36
     protected function provideClients(Container $container): Container
37 37
     {
38
-        $container[static::CLIENT_HEIDELPAY] = function (Container $container) {
38
+        $container[static::CLIENT_HEIDELPAY] = function(Container $container) {
39 39
             return $container->getLocator()->heidelpay()->client();
40 40
         };
41 41
 
42
-        $container[static::CLIENT_QUOTE] = function (Container $container) {
42
+        $container[static::CLIENT_QUOTE] = function(Container $container) {
43 43
             return $container->getLocator()->quote()->client();
44 44
         };
45 45
 
46
-        $container[static::CLIENT_CALCULATION] = function (Container $container) {
46
+        $container[static::CLIENT_CALCULATION] = function(Container $container) {
47 47
             return $container->getLocator()->calculation()->client();
48 48
         };
49 49
 
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): 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.