@@ -196,6 +196,9 @@ |
||
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)) { |
@@ -156,12 +156,12 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -237,7 +237,6 @@ |
||
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 | */ |
@@ -195,7 +195,7 @@ |
||
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 |