Completed
Pull Request — master (#5)
by
unknown
03:33
created
src/Message/XmlRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Message/PurchaseRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
         $data = parent::getData();
33 33
 
34 34
         //set customer details if set
35
-        if (($customerDetails = $this->getParameter('uppCustomerDetails')) && is_array($customerDetails)){
35
+        if (($customerDetails = $this->getParameter('uppCustomerDetails')) && is_array($customerDetails)) {
36 36
             $data['uppCustomerDetails'] = 'yes';
37
-            foreach ($customerDetails as $key => $value){
37
+            foreach ($customerDetails as $key => $value) {
38 38
                 $data[$key] = $value;
39 39
             }
40 40
         }
Please login to merge, or discard this patch.