Passed
Push — master ( 4fe58f...f21024 )
by Dmitry
02:05
created
src/Key.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
             $this->check_exists($fname);
21 21
 
22 22
             $key = $this->load($fname);
23
-        }
24
-        catch (\Exception $e)
23
+        } catch (\Exception $e)
25 24
         {
26 25
             throw new Exception\Runtime('The file with the '.$type.' key was '.$e->getMessage().'!', -98);
27 26
         }
Please login to merge, or discard this patch.
src/Provider31/Response/Check.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@
 block discarded – undo
43 43
      */
44 44
 	public function create_AccountInfo($accountinfo)
45 45
 	{
46
-		if (isset($this->AccountInfo)) return;
46
+		if (isset($this->AccountInfo)) {
47
+		        return;
48
+		}
47 49
 
48 50
 		$this->AccountInfo = $this->createElement('AccountInfo');
49 51
 		$this->Response->appendChild($this->AccountInfo);
Please login to merge, or discard this patch.
src/Provider31/Response/Cancel.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@
 block discarded – undo
41 41
      */
42 42
 	public function create_CancelDate($canceldate)
43 43
 	{
44
-		if (isset($this->CancelDate)) return;
44
+		if (isset($this->CancelDate)) {
45
+		        return;
46
+		}
45 47
 
46 48
 		$this->CancelDate = $this->createElement('CancelDate', $canceldate);
47 49
 		$this->Response->appendChild($this->CancelDate);
Please login to merge, or discard this patch.
src/Provider31/Response/Confirm.php 1 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 1 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.
src/Provider31/Request/RAW.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@
 block discarded – undo
111 111
             if ($child->nodeName == $name)
112 112
             {
113 113
                 array_push($ret, $child);
114
-            }
115
-            else
114
+            } else
116 115
             {
117 116
                 if (count($child->childNodes) > 0)
118 117
                 {
Please login to merge, or discard this patch.
src/Provider31/Response.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,9 @@
 block discarded – undo
136 136
      */
137 137
     protected function sign($options)
138 138
     {
139
-        if (isset($this->Sign)) return;
139
+        if (isset($this->Sign)) {
140
+                return;
141
+        }
140 142
 
141 143
         if (isset($options['UseSign']) && ($options['UseSign'] === true))
142 144
         {
Please login to merge, or discard this patch.
src/Sign.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
         if ($result == -1)
61 61
         {
62 62
             throw new Exception\Sign('Error verify signature of request!', -96);
63
-        }
64
-        elseif ($result == 0)
63
+        } elseif ($result == 0)
65 64
         {
66 65
             throw new Exception\Sign('Signature of request is incorrect!', -95);
67 66
         }
@@ -88,8 +87,7 @@  discard block
 block discarded – undo
88 87
             );
89 88
 
90 89
             return strtoupper(bin2hex($sign));
91
-        }
92
-        catch (\Exception $e)
90
+        } catch (\Exception $e)
93 91
         {
94 92
             return null;
95 93
         }
Please login to merge, or discard this patch.
src/Provider31/Request/General.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -130,8 +130,7 @@  discard block
 block discarded – undo
130 130
         if (count($ar) < 1)
131 131
         {
132 132
             throw new Exception\Structure('The xml-query does not contain any element Request!', -52);
133
-        }
134
-        elseif (count($ar) > 1)
133
+        } elseif (count($ar) > 1)
135 134
         {
136 135
             throw new Exception\Structure('The xml-query contains several elements Request!', -52);
137 136
         }
@@ -183,8 +182,7 @@  discard block
 block discarded – undo
183 182
             if ( ! isset($this->Operation))
184 183
             {
185 184
                 $this->Operation = $n->nodeName;
186
-            }
187
-            else
185
+            } else
188 186
             {
189 187
                 throw new Exception\Structure('There is more than one Operation type element in the xml-query!', -53);
190 188
             }
@@ -217,8 +215,7 @@  discard block
 block discarded – undo
217 215
         if ( ! isset($this->$name))
218 216
         {
219 217
             $this->$name = $n->nodeValue;
220
-        }
221
-        else
218
+        } else
222 219
         {
223 220
             throw new Exception\Structure('There is more than one '.$name.' element in the xml-query!', -56);
224 221
         }
Please login to merge, or discard this patch.