Completed
Pull Request — master (#11)
by Dániel
01:23
created
src/BattlenetHttpClient.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -196,6 +196,9 @@
 block discarded – undo
196 196
         return config('battlenet-api.locale', 'eu');
197 197
     }
198 198
 
199
+    /**
200
+     * @param string $method
201
+     */
199 202
     private function buildCahceOptions($method)
200 203
     {
201 204
         if (config('battlenet-api.cache', TRUE)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
         $query = Collection::wrap($options->get('query'));
157 157
 
158 158
         foreach ($this->getDefaultOptions() as $key => $option) {
159
-            if($query->has($key) === FALSE) {
159
+            if ($query->has($key) === FALSE) {
160 160
                 $query->put($key, $option);
161 161
             }
162 162
         }
163 163
 
164
-        $options->put('query',$query);
164
+        $options->put('query', $query);
165 165
 
166 166
         return $options;
167 167
     }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     private function buildCahceOptions($method)
200 200
     {
201 201
         if (config('battlenet-api.cache', TRUE)) {
202
-            if($this->options->has('cache') === FALSE) {
202
+            if ($this->options->has('cache') === FALSE) {
203 203
                 // We don't have any cache options yet, build it from ground up.
204 204
                 $cacheOptions = collect();
205 205
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                 $cacheOptions->put('uniqKey', implode('.', [$this->cacheKey, $cacheOptions->get('method')]));
208 208
                 $cacheOptions->put('duration', config('battlenet-api.cache_duration', 600));
209 209
 
210
-                $this->options->put('cache',$cacheOptions);
210
+                $this->options->put('cache', $cacheOptions);
211 211
             }
212 212
         }
213 213
     }
Please login to merge, or discard this patch.
src/Services/WowService.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,6 @@
 block discarded – undo
237 237
      *
238 238
      * A list of all supported mounts
239 239
      *
240
-     * @param array $options Options
241 240
      *
242 241
      * @return Illuminate\Support\Collection api response
243 242
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
         }
196 196
 
197 197
         $query = collect();
198
-        $query->put('fields','members');
198
+        $query->put('fields', 'members');
199 199
 
200 200
         $options->put('query', $query);
201 201
 
Please login to merge, or discard this patch.