Completed
Push — master ( be6e6a...1809bd )
by Anatoliy
07:02 queued 03:24
created
src/Providers/CoinMarketCapServiceProvider.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
      */
28 28
     public function register()
29 29
     {
30
-        $this->app->bind('CoinMarketCap', function ($app) {
30
+        $this->app->bind('CoinMarketCap', function($app) {
31 31
             return new CoinMarketCap($app);
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
src/Services/CoinMarketCap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @return null|mixed
24 24
      */
25
-    public function doRequest(string $method, string $url, array $query = [])
25
+    public function doRequest(string $method, string $url, array $query = [ ])
26 26
     {
27 27
         return Cache::remember(
28 28
             $this->getCacheKey($method, $url, $query),
29 29
             Carbon::now()->addSeconds(config('services.coinmarketcap.cache.timeout', 5)),
30
-            function () use ($method, $url, $query) {
30
+            function() use ($method, $url, $query) {
31 31
                 $client = new \GuzzleHttp\Client([
32 32
                     'base_uri'  => self::SERVICE_URL,
33 33
                     'protocols' => 'https',
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      *
134 134
      * @return string
135 135
      */
136
-    protected function getCacheKey(string $method, string $url, array $query = []): string
136
+    protected function getCacheKey(string $method, string $url, array $query = [ ]): string
137 137
     {
138 138
         $query = json_encode($query);
139 139
         $prefix = config('services.coinmarketcap.cache.prefix', 'coinmarkeycap');
Please login to merge, or discard this patch.