Completed
Pull Request — master (#38)
by Dániel
02:07
created
src/BattlenetHttpClient.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
             return $this->cache->remember(
121 121
                 $this->options->get('cache')->get('uniqKey'),
122 122
                 $this->options->get('cache')->get('duration'),
123
-                function () {
123
+                function() {
124 124
                     return $this->api();
125 125
                 }
126 126
             );
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -169,13 +169,13 @@
 block discarded – undo
169 169
                     $statusCode = $e->getResponse()->getStatusCode();
170 170
                     $reasonPhrase = $e->getResponse()->getReasonPhrase();
171 171
                 } else {
172
-                  $statusCode = 909;
173
-                  $reasonPhrase = 'Unable to resolve API domain';
174
-              }
175
-          }
176
-      } while ($attempts < $maxAttempts);
172
+                    $statusCode = 909;
173
+                    $reasonPhrase = 'Unable to resolve API domain';
174
+                }
175
+            }
176
+        } while ($attempts < $maxAttempts);
177 177
 
178
-      if ($statusCode and $reasonPhrase) {
178
+        if ($statusCode and $reasonPhrase) {
179 179
         return collect([
180 180
             'error' => collect([
181 181
                 'code' => $statusCode,
Please login to merge, or discard this patch.