@@ -114,8 +114,8 @@ |
||
| 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'); |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 | ] |