@@ -82,8 +82,8 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | protected function getRequestXml() |
| 84 | 84 | { |
| 85 | - $serviceXmlNode = "<" . $this->getServiceName() . "/>"; |
|
| 86 | - $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?>' . $serviceXmlNode); |
|
| 85 | + $serviceXmlNode = "<".$this->getServiceName()."/>"; |
|
| 86 | + $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?>'.$serviceXmlNode); |
|
| 87 | 87 | $xml->addAttribute('version', $this->getServiceVersion()); |
| 88 | 88 | |
| 89 | 89 | $bodyChild = $xml->addChild('body'); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | throw new InvalidResponseException('Error communicating with payment gateway'); |
| 176 | 176 | } catch (\Exception $e) { |
| 177 | 177 | throw new InvalidResponseException( |
| 178 | - 'Error communicating with payment gateway: ' . $e->getMessage(), |
|
| 178 | + 'Error communicating with payment gateway: '.$e->getMessage(), |
|
| 179 | 179 | $e->getCode() |
| 180 | 180 | ); |
| 181 | 181 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | protected function getEndpoint() |
| 198 | 198 | { |
| 199 | 199 | $base = $this->getTestMode() ? $this->getApiBaseTestUrl() : $this->getApiBaseProdUrl(); |
| 200 | - return $base . '/' . $this->getApiEndpoint(); |
|
| 200 | + return $base.'/'.$this->getApiEndpoint(); |
|
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | /** |