Passed
Branch master (b394a1)
by Paul
03:00
created
src/Connectors/EtherscanConnector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Connectors/AbstractConnector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Connectors/ChainsoConnector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/LaravelCryptoStatsProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.