Passed
Push — master ( 314d48...1728d3 )
by Dmitry
01:44
created
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 = self::createElement('PaymentId', $paymentid);
48 50
 		$this->Response->appendChild($this->PaymentId);
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 = self::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 = self::createElement('OrderDate', $orderdate);
48 50
 		$this->Response->appendChild($this->OrderDate);
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 = self::createElement('AccountInfo');
49 51
 		$this->Response->appendChild($this->AccountInfo);
Please login to merge, or discard this patch.
src/Provider31/Response.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,9 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function sign($options)
126 126
     {
127
-        if (isset($this->Sign)) return;
127
+        if (isset($this->Sign)) {
128
+                return;
129
+        }
128 130
 
129 131
         if (isset($options['UseSign']) && ($options['UseSign'] === true))
130 132
         {
@@ -153,8 +155,7 @@  discard block
 block discarded – undo
153 155
         try
154 156
         {
155 157
             $pkeyid = (new Key())->get($options['ProviderPKey'], 'private');
156
-        }
157
-        catch (\Exception $e)
158
+        } catch (\Exception $e)
158 159
         {
159 160
             return null;
160 161
         }
Please login to merge, or discard this patch.
src/Provider31.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,20 +71,16 @@
 block discarded – undo
71 71
             $this->response = $this->get_response();
72 72
 
73 73
             Log::instance()->add('the request was processed successfully');
74
-        }
75
-        catch (Exception\Structure $e)
74
+        } catch (Exception\Structure $e)
76 75
         {
77 76
             $this->response = $this->get_error_response($e->getCode(), 'Error in request');
78
-        }
79
-        catch (Exception\Sign $e)
77
+        } catch (Exception\Sign $e)
80 78
         {
81 79
             $this->response = $this->get_error_response($e->getCode(), 'Signature error!');
82
-        }
83
-        catch (Exception\Runtime $e)
80
+        } catch (Exception\Runtime $e)
84 81
         {
85 82
             $this->response = $this->get_error_response($e->getCode(), 'Error while processing request');
86
-        }
87
-        catch (\Exception $e)
83
+        } catch (\Exception $e)
88 84
         {
89 85
             $this->response = $this->get_error_response($e->getCode(), $e->getMessage());
90 86
         }
Please login to merge, or discard this patch.