@@ -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 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | public function setDebug($debug) |
58 | 58 | { |
59 | 59 | $this->debug = $debug; |
60 | - if($debug){ |
|
60 | + if ($debug) { |
|
61 | 61 | $this->jsonRPCClient->getHttpClient()->withDebug(); |
62 | 62 | } |
63 | 63 | return $this; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @param $address |
123 | 123 | * @return mixed |
124 | 124 | */ |
125 | - public function dumpPrivateKey($address){ |
|
125 | + public function dumpPrivateKey($address) { |
|
126 | 126 | return $this->jsonRPCClient->execute("dumpprivkey", array($address)); |
127 | 127 | } |
128 | 128 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @param bool $rescan |
137 | 137 | * @return mixed |
138 | 138 | */ |
139 | - public function importPrivateKey($privkey, $label="", $rescan=true){ |
|
139 | + public function importPrivateKey($privkey, $label = "", $rescan = true) { |
|
140 | 140 | return $this->jsonRPCClient->execute("importprivkey", array($privkey, $label, $rescan)); |
141 | 141 | } |
142 | 142 | |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | * @param bool $open |
427 | 427 | * @return mixed |
428 | 428 | */ |
429 | - public function issue($address, $name, $qty, $units = 1, $nativeAmount = 0, $custom = null, $open=false) |
|
429 | + public function issue($address, $name, $qty, $units = 1, $nativeAmount = 0, $custom = null, $open = false) |
|
430 | 430 | { |
431 | 431 | $params = array($address, array('name'=>$name, 'open'=>$open), $qty, $units, $nativeAmount); |
432 | 432 | if (!is_null($custom)) { |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | * @param null $custom |
450 | 450 | * @return mixed |
451 | 451 | */ |
452 | - public function issueMore($address, $asset, $qty, $nativeAmount=0, $custom = null){ |
|
452 | + public function issueMore($address, $asset, $qty, $nativeAmount = 0, $custom = null) { |
|
453 | 453 | $params = array($address, $asset, $qty, $nativeAmount); |
454 | 454 | if (!is_null($custom)) { |
455 | 455 | $params[] = $custom; |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * transaction can then be signed and transmitted to the network using signrawtransaction and sendrawtransaction. |
196 | 196 | * |
197 | 197 | * @param $txHex |
198 | - * @param $dataHex |
|
198 | + * @param string $dataHex |
|
199 | 199 | * @return mixed |
200 | 200 | */ |
201 | 201 | public function appendRawMetadata($txHex, $dataHex) |
@@ -418,8 +418,8 @@ discard block |
||
418 | 418 | * using the native-amount parameter. |
419 | 419 | * |
420 | 420 | * @param $address |
421 | - * @param $name |
|
422 | - * @param $qty |
|
421 | + * @param string $name |
|
422 | + * @param integer $qty |
|
423 | 423 | * @param int $units |
424 | 424 | * @param int $nativeAmount |
425 | 425 | * @param null $custom |