Passed
Push — main ( 0e1999...00d2aa )
by Pouya
02:49
created
src/Objects/AccountResponse.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Appino\Blockchain\Objects\Cache;
6 6
 
7
-class AccountResponse{
7
+class AccountResponse {
8 8
     /**
9 9
      * @var string
10 10
      */
@@ -55,17 +55,17 @@  discard block
 block discarded – undo
55 55
      * @param $json array|object
56 56
      */
57 57
 
58
-    public function __construct($json){
59
-        $this->balance = data_get($json,'balance');
60
-        $this->label = data_get($json,'address');
61
-        $this->index = data_get($json,'label');
62
-        $this->archived = data_get($json,'archived');
63
-        $this->extendedPublicKey = data_get($json,'extendedPublicKey');
64
-        $this->extendedPrivateKey = data_get($json,'extendedPrivateKey');
65
-        $this->receiveIndex = data_get($json,'receiveIndex');
66
-        $this->lastUsedReceiveIndex = data_get($json,'lastUsedReceiveIndex');
67
-        $this->receiveAddress = data_get($json,'receiveAddress');
68
-        $this->cahce = new Cache(data_get($json,'cache'));
58
+    public function __construct($json) {
59
+        $this->balance = data_get($json, 'balance');
60
+        $this->label = data_get($json, 'address');
61
+        $this->index = data_get($json, 'label');
62
+        $this->archived = data_get($json, 'archived');
63
+        $this->extendedPublicKey = data_get($json, 'extendedPublicKey');
64
+        $this->extendedPrivateKey = data_get($json, 'extendedPrivateKey');
65
+        $this->receiveIndex = data_get($json, 'receiveIndex');
66
+        $this->lastUsedReceiveIndex = data_get($json, 'lastUsedReceiveIndex');
67
+        $this->receiveAddress = data_get($json, 'receiveAddress');
68
+        $this->cahce = new Cache(data_get($json, 'cache'));
69 69
     }
70 70
 
71 71
 }
Please login to merge, or discard this patch.
src/Objects/PaymentResponse.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 namespace Appino\Blockchain\Objects;
5 5
 
6 6
 
7
-class PaymentResponse{
7
+class PaymentResponse {
8 8
     /**
9 9
      * @var array of string
10 10
      */
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
      * @param $json array
36 36
      */
37 37
 
38
-    public function __construct($json){
39
-        $this->to = data_get($json,'to');
40
-        $this->from = data_get($json,'from');
41
-        $this->amount = data_get($json,'amount');
42
-        $this->fee = data_get($json,'fee');
43
-        $this->txid = data_get($json,'txid');
44
-        $this->success = data_get($json,'success');
38
+    public function __construct($json) {
39
+        $this->to = data_get($json, 'to');
40
+        $this->from = data_get($json, 'from');
41
+        $this->amount = data_get($json, 'amount');
42
+        $this->fee = data_get($json, 'fee');
43
+        $this->txid = data_get($json, 'txid');
44
+        $this->success = data_get($json, 'success');
45 45
     }
46 46
 
47 47
 }
Please login to merge, or discard this patch.