@@ -120,7 +120,7 @@ |
||
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 | ); |
@@ -169,13 +169,13 @@ |
||
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, |