Completed
Push — master ( 0c2573...0eced7 )
by Dominik
02:01
created
src/Message/XmlRequest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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)
Please login to merge, or discard this 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/XmlSettlementRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         return $data;
119 119
     }
120 120
 
121
-   /**
121
+    /**
122 122
      * @param $value
123 123
      *
124 124
      * @return static
Please login to merge, or discard this patch.
src/Message/XmlResponse.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@
 block discarded – undo
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
  */
Please login to merge, or discard this patch.