@@ -19,7 +19,7 @@ discard block  | 
                                                    ||
| 19 | 19 | * @param $assetTxId  | 
                                                        
| 20 | 20 | * @return bool  | 
                                                        
| 21 | 21 | */  | 
                                                        
| 22 | -    public function isAssetAvailable($assetTxId){ | 
                                                        |
| 22 | +    public function isAssetAvailable($assetTxId) { | 
                                                        |
| 23 | 23 | $assetInfo = $this->getAssetInfoFromTxId($assetTxId);  | 
                                                        
| 24 | 24 | return !is_null($assetInfo["assetref"]);  | 
                                                        
| 25 | 25 | }  | 
                                                        
@@ -27,8 +27,8 @@ discard block  | 
                                                    ||
| 27 | 27 | /**  | 
                                                        
| 28 | 28 | * @param $assetTxId  | 
                                                        
| 29 | 29 | */  | 
                                                        
| 30 | -    public function waitForAssetAvailability($assetTxId){ | 
                                                        |
| 31 | -        while (!$this->isAssetAvailable($assetTxId)){ | 
                                                        |
| 30 | +    public function waitForAssetAvailability($assetTxId) { | 
                                                        |
| 31 | +        while (!$this->isAssetAvailable($assetTxId)) { | 
                                                        |
| 32 | 32 | sleep(1);  | 
                                                        
| 33 | 33 | }  | 
                                                        
| 34 | 34 | }  | 
                                                        
@@ -37,7 +37,7 @@ discard block  | 
                                                    ||
| 37 | 37 | * @param $assetTxId  | 
                                                        
| 38 | 38 | * @return mixed  | 
                                                        
| 39 | 39 | */  | 
                                                        
| 40 | -    public function getAssetInfoFromTxId($assetTxId){ | 
                                                        |
| 40 | +    public function getAssetInfoFromTxId($assetTxId) { | 
                                                        |
| 41 | 41 | $assetInfo = $this->multichain->listAssets($assetTxId);  | 
                                                        
| 42 | 42 | return $assetInfo[0];  | 
                                                        
| 43 | 43 | }  | 
                                                        
@@ -120,7 +120,7 @@ discard block  | 
                                                    ||
| 120 | 120 | * @param $address  | 
                                                        
| 121 | 121 | * @return mixed  | 
                                                        
| 122 | 122 | */  | 
                                                        
| 123 | -    public function dumpPrivateKey($address){ | 
                                                        |
| 123 | +    public function dumpPrivateKey($address) { | 
                                                        |
| 124 | 124 |          return $this->jsonRPCClient->execute("dumpprivkey", array($address)); | 
                                                        
| 125 | 125 | }  | 
                                                        
| 126 | 126 | |
@@ -134,7 +134,7 @@ discard block  | 
                                                    ||
| 134 | 134 | * @param bool $rescan  | 
                                                        
| 135 | 135 | * @return mixed  | 
                                                        
| 136 | 136 | */  | 
                                                        
| 137 | -    public function importPrivateKey($privkey, $label="", $rescan=true){ | 
                                                        |
| 137 | +    public function importPrivateKey($privkey, $label = "", $rescan = true) { | 
                                                        |
| 138 | 138 |          return $this->jsonRPCClient->execute("importprivkey", array($privkey, $label, $rescan)); | 
                                                        
| 139 | 139 | }  | 
                                                        
| 140 | 140 | |
@@ -424,7 +424,7 @@ discard block  | 
                                                    ||
| 424 | 424 | * @param bool $open  | 
                                                        
| 425 | 425 | * @return mixed  | 
                                                        
| 426 | 426 | */  | 
                                                        
| 427 | - public function issue($address, $name, $qty, $units = 1, $nativeAmount = 0, $custom = null, $open=false)  | 
                                                        |
| 427 | + public function issue($address, $name, $qty, $units = 1, $nativeAmount = 0, $custom = null, $open = false)  | 
                                                        |
| 428 | 428 |      { | 
                                                        
| 429 | 429 |          $params = array($address, array('name'=>$name, 'open'=>$open), $qty, $units, $nativeAmount); | 
                                                        
| 430 | 430 |          if (!is_null($custom)) { | 
                                                        
@@ -447,7 +447,7 @@ discard block  | 
                                                    ||
| 447 | 447 | * @param null $custom  | 
                                                        
| 448 | 448 | * @return mixed  | 
                                                        
| 449 | 449 | */  | 
                                                        
| 450 | -    public function issueMore($address, $asset, $qty, $nativeAmount=0, $custom = null){ | 
                                                        |
| 450 | +    public function issueMore($address, $asset, $qty, $nativeAmount = 0, $custom = null) { | 
                                                        |
| 451 | 451 | $params = array($address, $asset, $qty, $nativeAmount);  | 
                                                        
| 452 | 452 |          if (!is_null($custom)) { | 
                                                        
| 453 | 453 | $params[] = $custom;  |