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