@@ -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, |