Completed
Pull Request — master (#11)
by Dániel
01:23
created
src/Services/WowService.php 1 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.
src/BattlenetHttpClient.php 1 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.