Completed
Branch master (6b3d7b)
by Guillaume
06:41
created
src/BattlenetHttpClient.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Make request with API url and specific URL suffix.
51 51
      *
52
-     * @param string $urlSuffix API URL method
53 52
      * @param array  $options   Options
53
+     * @param string $apiEndPoint
54 54
      *
55 55
      * @return ResponseInterface
56 56
      */
@@ -67,6 +67,10 @@  discard block
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
+    /**
71
+     * @param ResponseInterface $response
72
+     * @param string $method
73
+     */
70 74
     public function cache($response, $method)
71 75
     {
72 76
         if (true == $this->hasToCache()) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     public function cache($response, $method)
71 71
     {
72 72
         if (true == $this->hasToCache()) {
73
-            return $this->cache->remember($this->cacheKey.snake_case($method), $this->getCacheDuration(), function () use ($response) {
73
+            return $this->cache->remember($this->cacheKey.snake_case($method), $this->getCacheDuration(), function() use ($response) {
74 74
                 return collect(json_decode($response->getBody()->getContents()));
75 75
             });
76 76
         } else {
Please login to merge, or discard this patch.