@@ -53,7 +53,7 @@ |
||
| 53 | 53 | protected $serviceVersion = null; |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @param $requestChild |
|
| 56 | + * @param \SimpleXMLElement $requestChild |
|
| 57 | 57 | * @return mixed |
| 58 | 58 | */ |
| 59 | 59 | protected function prepareRequestXml($requestChild) |
@@ -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 | /** |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | return $data; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - /** |
|
| 121 | + /** |
|
| 122 | 122 | * @param $value |
| 123 | 123 | * |
| 124 | 124 | * @return static |
@@ -14,8 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace Omnipay\Datatrans\Message; |
| 16 | 16 | |
| 17 | -use Omnipay\Common\Message\RequestInterface; |
|
| 18 | - |
|
| 19 | 17 | /** |
| 20 | 18 | * Datatrans XML Response |
| 21 | 19 | */ |