Passed
Branch master (2d95e1)
by Luca
03:55
created
Category
src/CryptocurrencyCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *
32 32
      * @var array
33 33
      */
34
-    public static $crypto_enabled = [];
34
+    public static $crypto_enabled = [ ];
35 35
 
36 36
     /**
37 37
      * Load all enabled cryptocurrencies.
Please login to merge, or discard this patch.
src/Cryptocurrency.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,21 +83,21 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @var array
85 85
      */
86
-    protected $website = [];
86
+    protected $website = [ ];
87 87
 
88 88
     /**
89 89
      * Cryptocurrency explorer urls.
90 90
      *
91 91
      * @var array
92 92
      */
93
-    protected $explorer = [];
93
+    protected $explorer = [ ];
94 94
 
95 95
     /**
96 96
      * Cryptocurrency sourcecode url.
97 97
      *
98 98
      * @var array
99 99
      */
100
-    protected $source_code = [];
100
+    protected $source_code = [ ];
101 101
 
102 102
     /**
103 103
      * {@inheritdoc}
@@ -242,6 +242,6 @@  discard block
 block discarded – undo
242 242
             throw new CryptoNotEnabledException(sprintf('The cryptocurrency ("%s") you have selected is not enabled in your configuration!', $name));
243 243
         }
244 244
 
245
-        return call_user_func([new $class_name($name), 'build']);
245
+        return call_user_func([ new $class_name($name), 'build' ]);
246 246
     }
247 247
 }
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 // Initialize new CryptocurrencyCollection()
28 28
 $crypto_coll = new \CryptoTech\Cryptocurrency\CryptocurrencyCollection();
29 29
 // Load the array with all cryptocurrencies enabled
30
-$crypto_enabled = (include 'config/cryptocurrency.php')['crypto_enabled'];
30
+$crypto_enabled = (include 'config/cryptocurrency.php')[ 'crypto_enabled' ];
31 31
 
32 32
 // Inject the enabled cryptocurrencies' array in the collection
33 33
 $crypto_coll->loadEnabledCrypto($crypto_enabled);
Please login to merge, or discard this patch.