Passed
Push — master ( 08fae3...1a271c )
by Dmitry
01:56
created
src/Provider31/Response/Confirm.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -15,36 +15,36 @@
 block discarded – undo
15 15
 
16 16
 final class Confirm extends Response
17 17
 {
18
-    /**
19
-     *      @var \DOMElement
20
-     */
21
-    protected $OrderDate;
22
-
23
-	/**
24
-     *      Confirm constructor
25
-     *
26
-     *      @param string $orderdate
27
-     */
28
-    public function __construct($orderdate)
29
-    {
30
-		parent::__construct();
31
-
32
-		$this->setElementValue('StatusCode', 0);
33
-		$this->setElementValue('StatusDetail', 'checked');
34
-
35
-		$this->create_OrderDate($orderdate);
36
-	}
37
-
38
-	/**
39
-     *      Create OrderDate node
40
-     *
41
-     *      @param string $orderdate
42
-     */
43
-	public function create_OrderDate($orderdate)
44
-	{
45
-		if (isset($this->OrderDate)) return;
46
-
47
-		$this->OrderDate = $this->createElement('OrderDate', $orderdate);
48
-		$this->Response->appendChild($this->OrderDate);
49
-	}
18
+        /**
19
+         *      @var \DOMElement
20
+         */
21
+        protected $OrderDate;
22
+
23
+        /**
24
+         *      Confirm constructor
25
+         *
26
+         *      @param string $orderdate
27
+         */
28
+        public function __construct($orderdate)
29
+        {
30
+                parent::__construct();
31
+
32
+                $this->setElementValue('StatusCode', 0);
33
+                $this->setElementValue('StatusDetail', 'checked');
34
+
35
+                $this->create_OrderDate($orderdate);
36
+        }
37
+
38
+        /**
39
+         *      Create OrderDate node
40
+         *
41
+         *      @param string $orderdate
42
+         */
43
+        public function create_OrderDate($orderdate)
44
+        {
45
+                if (isset($this->OrderDate)) return;
46
+
47
+                $this->OrderDate = $this->createElement('OrderDate', $orderdate);
48
+                $this->Response->appendChild($this->OrderDate);
49
+        }
50 50
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,9 @@
 block discarded – undo
42 42
      */
43 43
 	public function create_OrderDate($orderdate)
44 44
 	{
45
-		if (isset($this->OrderDate)) return;
45
+		if (isset($this->OrderDate)) {
46
+		        return;
47
+		}
46 48
 
47 49
 		$this->OrderDate = $this->createElement('OrderDate', $orderdate);
48 50
 		$this->Response->appendChild($this->OrderDate);
Please login to merge, or discard this patch.
src/Provider31/Response/Payment.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -15,36 +15,36 @@
 block discarded – undo
15 15
 
16 16
 final class Payment extends Response
17 17
 {
18
-    /**
19
-     *      @var \DOMElement
20
-     */
21
-    protected $PaymentId;
22
-
23
-	/**
24
-     *      Payment constructor
25
-     *
26
-     *      @param string $paymentid
27
-     */
28
-    public function __construct($paymentid)
29
-    {
30
-		parent::__construct();
31
-
32
-		$this->setElementValue('StatusCode', 0);
33
-		$this->setElementValue('StatusDetail', 'checked');
34
-
35
-		$this->create_PaymentId($paymentid);
36
-	}
37
-
38
-	/**
39
-     *      Create PaymentId node
40
-     *
41
-     *      @param string $paymentid
42
-     */
43
-	public function create_PaymentId($paymentid)
44
-	{
45
-		if (isset($this->PaymentId)) return;
46
-
47
-		$this->PaymentId = $this->createElement('PaymentId', $paymentid);
48
-		$this->Response->appendChild($this->PaymentId);
49
-	}
18
+        /**
19
+         *      @var \DOMElement
20
+         */
21
+        protected $PaymentId;
22
+
23
+        /**
24
+         *      Payment constructor
25
+         *
26
+         *      @param string $paymentid
27
+         */
28
+        public function __construct($paymentid)
29
+        {
30
+                parent::__construct();
31
+
32
+                $this->setElementValue('StatusCode', 0);
33
+                $this->setElementValue('StatusDetail', 'checked');
34
+
35
+                $this->create_PaymentId($paymentid);
36
+        }
37
+
38
+        /**
39
+         *      Create PaymentId node
40
+         *
41
+         *      @param string $paymentid
42
+         */
43
+        public function create_PaymentId($paymentid)
44
+        {
45
+                if (isset($this->PaymentId)) return;
46
+
47
+                $this->PaymentId = $this->createElement('PaymentId', $paymentid);
48
+                $this->Response->appendChild($this->PaymentId);
49
+        }
50 50
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,9 @@
 block discarded – undo
42 42
      */
43 43
 	public function create_PaymentId($paymentid)
44 44
 	{
45
-		if (isset($this->PaymentId)) return;
45
+		if (isset($this->PaymentId)) {
46
+		        return;
47
+		}
46 48
 
47 49
 		$this->PaymentId = $this->createElement('PaymentId', $paymentid);
48 50
 		$this->Response->appendChild($this->PaymentId);
Please login to merge, or discard this patch.