@@ -146,11 +146,11 @@ |
||
146 | 146 | $promise = $client->getAsync('https://api.ipify.org'); |
147 | 147 | |
148 | 148 | $promise->then( |
149 | - function ($response) { |
|
149 | + function($response) { |
|
150 | 150 | $publicIp = $response->getBody()->getContents(); |
151 | 151 | return $publicIp; |
152 | 152 | }, |
153 | - function ($exception) { |
|
153 | + function($exception) { |
|
154 | 154 | return 'Error: ' . $exception->getMessage(); |
155 | 155 | } |
156 | 156 | ); |