| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function toPromise(UriInterface $uri, array $options): PromiseInterface |
||
| 37 | { |
||
| 38 | $options = array_merge_recursive(Arr::add($this->defaults, 'query.url', (string)$uri), $options); |
||
| 39 | $request = new Request('POST', '/api-create.php'); |
||
| 40 | |||
| 41 | return $this->client->sendAsync($request, $options)->then(function (ResponseInterface $response) { |
||
| 42 | return str_replace('http://', 'https://', $response->getBody()->getContents()); |
||
| 43 | }); |
||
| 46 |