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