Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 30 | public function shortenAsync($url, array $options = []) |
|
37 | { |
||
38 | 30 | $options = array_merge(Arr::add($this->defaults, 'query.s', $url), $options); |
|
39 | 30 | $request = new Request('GET', "/api/$this->token"); |
|
40 | |||
41 | return $this->client->sendAsync($request, $options)->then(function (ResponseInterface $response) { |
||
42 | 30 | return $response->getBody()->getContents(); |
|
43 | 30 | }); |
|
46 |