@@ -27,7 +27,7 @@ |
||
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 | } |
@@ -22,12 +22,12 @@ discard block |
||
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 |
||
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'); |