Passed
Branch master (9f82b6)
by Anatoliy
08:48
created
Category
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
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return null|mixed
28 28
      */
29
-    public function doRequest(string $method, string $url, array $query = [])
29
+    public function doRequest(string $method, string $url, array $query = [ ])
30 30
     {
31 31
         return Cache::remember(
32 32
             $this->getCacheKey($method, $url, $query),
33 33
             Carbon::now()->addSeconds(self::CACHE_TIMEOUT),
34
-            function () use ($method, $url, $query) {
34
+            function() use ($method, $url, $query) {
35 35
                 $client = new \GuzzleHttp\Client([
36 36
                     'base_uri'  => self::SERVICE_URL,
37 37
                     'protocols' => 'https',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @return string
139 139
      */
140
-    protected function getCacheKey(string $method, string $url, array $query = []): string
140
+    protected function getCacheKey(string $method, string $url, array $query = [ ]): string
141 141
     {
142 142
         $query = json_encode($query);
143 143
 
Please login to merge, or discard this patch.