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