Passed
Push — main ( ac53a4...aee26d )
by Pouya
06:40 queued 03:43
created
src/Objects/BalanceCallback.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,9 @@
 block discarded – undo
17 17
      */
18 18
 
19 19
     public function __construct($params){
20
-        if(is_null($params))
21
-            return;
20
+        if(is_null($params)) {
21
+                    return;
22
+        }
22 23
         foreach ($params as $key => $value){
23 24
             $this->{$key} = $value;
24 25
         }
Please login to merge, or discard this patch.
src/Objects/NotificationResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
     public $onNotification;
15 15
 
16 16
     public function __construct($params){
17
-        if(is_null($params))
18
-            return;
17
+        if(is_null($params)) {
18
+                    return;
19
+        }
19 20
         foreach ($params as $key => $value){
20 21
             $this->{$key} = $value;
21 22
         }
Please login to merge, or discard this patch.
src/Objects/BlockCallback.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@
 block discarded – undo
13 13
     public $size;
14 14
 
15 15
     public function __construct($params){
16
-        if(is_null($params))
17
-            return;
16
+        if(is_null($params)) {
17
+                    return;
18
+        }
18 19
         foreach ($params as $key => $value){
19 20
             $this->{$key} = $value;
20 21
         }
Please login to merge, or discard this patch.
src/Objects/LogResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,9 @@
 block discarded – undo
24 24
     public $response_code;
25 25
 
26 26
     public function __construct($params){
27
-        if(is_null($params))
28
-            return;
27
+        if(is_null($params)) {
28
+                    return;
29
+        }
29 30
         $this->callback = data_get($params,'callback');
30 31
         $this->called_at = data_get($params,'called_at');
31 32
         $this->raw_response = data_get($params,'raw_response');
Please login to merge, or discard this patch.
src/Objects/PaymentResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
      */
37 37
 
38 38
     public function __construct($params){
39
-        if(is_null($params))
40
-            return;
39
+        if(is_null($params)) {
40
+                    return;
41
+        }
41 42
         $this->to = data_get($params,'to');
42 43
         $this->from = data_get($params,'from');
43 44
         $this->amount = data_get($params,'amount');
Please login to merge, or discard this patch.
src/Objects/ReceiveResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,9 @@
 block discarded – undo
19 19
     public $callback;
20 20
 
21 21
     public function __construct($params){
22
-        if(is_null($params))
23
-            return;
22
+        if(is_null($params)) {
23
+                    return;
24
+        }
24 25
         $this->address = data_get($params,'address');
25 26
         $this->index = data_get($params,'index');
26 27
         $this->callback = data_get($params,'callback');
Please login to merge, or discard this patch.
src/Objects/WalletAddress.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,9 @@
 block discarded – undo
38 38
 
39 39
     public function __construct($params){
40 40
         //echo Json::encode($params);
41
-        if(is_null($params))
42
-            return;
41
+        if(is_null($params)) {
42
+                    return;
43
+        }
43 44
         $this->label = data_get($params,'label');
44 45
         $this->archived = data_get($params,'archived');
45 46
         $this->xpriv = data_get($params,'xpriv');
Please login to merge, or discard this patch.
src/Objects/WalletResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@
 block discarded – undo
26 26
      */
27 27
 
28 28
     public function __construct($params){
29
-        if(is_null($params))
30
-            return;
29
+        if(is_null($params)) {
30
+                    return;
31
+        }
31 32
         $this->guid = data_get($params,'guid');
32 33
         $this->address = data_get($params,'address');
33 34
         $this->label = data_get($params,'label');
Please login to merge, or discard this patch.
src/Objects/Cache.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,9 @@
 block discarded – undo
12 12
     public $changeAccount;
13 13
 
14 14
     public function __construct($params){
15
-        if(is_null($params))
16
-            return;
15
+        if(is_null($params)) {
16
+                    return;
17
+        }
17 18
         $this->receiveAccount = data_get($params,'receiveAccount');
18 19
         $this->changeAccount = data_get($params,'changeAccount');
19 20
     }
Please login to merge, or discard this patch.