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