@@ -47,12 +47,12 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * {@inheritDoc} |
| 49 | 49 | */ |
| 50 | - public function shortenAsync($url, array $options = []) |
|
| 50 | + public function shortenAsync($url, array $options = [ ]) |
|
| 51 | 51 | { |
| 52 | 52 | $options = array_merge(Arr::add($this->defaults, 'query.url', $url), $options); |
| 53 | 53 | $request = new Request('GET', '/api/v2/action/shorten'); |
| 54 | 54 | |
| 55 | - return $this->client->sendAsync($request, $options)->then(function (ResponseInterface $response) { |
|
| 55 | + return $this->client->sendAsync($request, $options)->then(function(ResponseInterface $response) { |
|
| 56 | 56 | return json_decode($response->getBody()->getContents())->result; |
| 57 | 57 | }); |
| 58 | 58 | } |