@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace chillerlan\HTTP; |
| 14 | 14 | |
| 15 | -use chillerlan\Traits\ContainerInterface; |
|
| 16 | 15 | use GuzzleHttp\Client; |
| 17 | 16 | use Psr\Http\Message\StreamInterface; |
| 17 | +use chillerlan\Traits\ContainerInterface; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @property \GuzzleHttp\Client $http |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | * HTTPClientInterface constructor. |
| 21 | 21 | * |
| 22 | 22 | * @param \chillerlan\Traits\ContainerInterface $options |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function __construct(ContainerInterface $options); |
| 25 | 26 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | curl_setopt_array($this->http, [ |
| 40 | 40 | CURLOPT_HEADER => false, |
| 41 | 41 | CURLOPT_RETURNTRANSFER => true, |
| 42 | - CURLOPT_PROTOCOLS => CURLPROTO_HTTP|CURLPROTO_HTTPS, |
|
| 42 | + CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS, |
|
| 43 | 43 | CURLOPT_CAINFO => $this->options->ca_info, |
| 44 | 44 | CURLOPT_SSL_VERIFYPEER => true, |
| 45 | 45 | CURLOPT_SSL_VERIFYHOST => 2, |