@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | public function validateAddress(string $address): bool |
| 16 | 16 | { |
| 17 | - if($address) return EthereumValidator::isAddress($address); |
|
| 17 | + if ($address) return EthereumValidator::isAddress($address); |
|
| 18 | 18 | |
| 19 | 19 | throw new Exception('Wallet address can not be empty!'); |
| 20 | 20 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function getBlockExplorerLink(string $address): string |
| 39 | 39 | { |
| 40 | - if($address) return $this->block_link_prefix . $address; |
|
| 40 | + if ($address) return $this->block_link_prefix . $address; |
|
| 41 | 41 | |
| 42 | 42 | throw new Exception('Wallet address can not be empty!'); |
| 43 | 43 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function setCurrency(string $currency) |
| 60 | 60 | { |
| 61 | - if($currency) $this->currency = $currency; |
|
| 61 | + if ($currency) $this->currency = $currency; |
|
| 62 | 62 | else throw new Exception('Currency can not be empty!'); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | protected function roundBalance($balance): float |
| 128 | 128 | { |
| 129 | - if(isset($balance)) return round($balance, 8); |
|
| 129 | + if (isset($balance)) return round($balance, 8); |
|
| 130 | 130 | |
| 131 | 131 | throw new Exception('Balance can not be empty!'); |
| 132 | 132 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | public function getBlockExplorerLink(string $address): string |
| 41 | 41 | { |
| 42 | - if($address) return $this->block_link_prefix . $this->currency . '/' . $address; |
|
| 42 | + if ($address) return $this->block_link_prefix . $this->currency . '/' . $address; |
|
| 43 | 43 | |
| 44 | 44 | throw new Exception('Wallet address can not be empty!'); |
| 45 | 45 | } |
@@ -33,15 +33,15 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function register() |
| 35 | 35 | { |
| 36 | - $this->app->bind('laravel-crypto-stats', function () { |
|
| 36 | + $this->app->bind('laravel-crypto-stats', function() { |
|
| 37 | 37 | return new LaravelCryptoStats(); |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | - $this->app->bind('chainso', function () { |
|
| 40 | + $this->app->bind('chainso', function() { |
|
| 41 | 41 | return new ChainsoConnector(); |
| 42 | 42 | }); |
| 43 | 43 | |
| 44 | - $this->app->bind('etherscan', function () { |
|
| 44 | + $this->app->bind('etherscan', function() { |
|
| 45 | 45 | return new EtherscanConnector(); |
| 46 | 46 | }); |
| 47 | 47 | |