Completed
Push — master ( 993cb8...0b9234 )
by Cesar
18s queued 13s
created
src/Service/Paypal/IdentityService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@
 block discarded – undo
114 114
             [],
115 115
             'https://api.sandbox.paypal.com/v1/identity/generate-token'
116 116
         );
117
-        if (array_key_exists('statusCode',$response) && $response['statusCode'] == Response::HTTP_OK) {
118
-            $result = (object) json_decode($response['result'],true);
117
+        if (array_key_exists('statusCode', $response) && $response['statusCode'] == Response::HTTP_OK) {
118
+            $result = (object) json_decode($response['result'], true);
119 119
             return  $result->client_token;
120 120
         } else {
121 121
             $this->logger->error('Error on PayPal::getClientToken');
Please login to merge, or discard this patch.
src/Controller/Paypal/PaymentsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function payments(string $action)
37 37
     {
38
-        return $this->render('paypal/payments/'. $action .'.html.twig');
38
+        return $this->render('paypal/payments/' . $action . '.html.twig');
39 39
     }
40 40
 
41 41
     /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $clientToken = $this->paypalService->getIdentityService()->getClientToken();
130 130
         return $this->render(
131
-            'paypal/payments/'. $action .'.html.twig',
131
+            'paypal/payments/' . $action . '.html.twig',
132 132
             [
133 133
                 'clientToken' => $clientToken,
134 134
             ]
Please login to merge, or discard this patch.