@@ -49,12 +49,12 @@ |
||
49 | 49 | /** |
50 | 50 | * {@inheritDoc} |
51 | 51 | */ |
52 | - public function shortenAsync($url, array $options = []) |
|
52 | + public function shortenAsync($url, array $options = [ ]) |
|
53 | 53 | { |
54 | 54 | $options = array_merge(Arr::add($this->defaults, 'json.dynamicLinkInfo.link', $url), $options); |
55 | 55 | $request = new Request('POST', '/v1/shortLinks'); |
56 | 56 | |
57 | - return $this->client->sendAsync($request, $options)->then(function (ResponseInterface $response) { |
|
57 | + return $this->client->sendAsync($request, $options)->then(function(ResponseInterface $response) { |
|
58 | 58 | return json_decode($response->getBody()->getContents())->shortLink; |
59 | 59 | }); |
60 | 60 | } |