@@ -37,6 +37,11 @@ |
||
| 37 | 37 | return $curlOpts; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $key |
|
| 42 | + * |
|
| 43 | + * @return resource |
|
| 44 | + */ |
|
| 40 | 45 | private static function getCurl($key) |
| 41 | 46 | { |
| 42 | 47 | static $curlCache = array(); |
@@ -85,6 +85,9 @@ discard block |
||
| 85 | 85 | return $cache = false; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | + /** |
|
| 89 | + * @param string $url |
|
| 90 | + */ |
|
| 88 | 91 | protected function getProxy($url) |
| 89 | 92 | { |
| 90 | 93 | if (isset($_SERVER['no_proxy'])) { |
@@ -255,6 +258,9 @@ discard block |
||
| 255 | 258 | } |
| 256 | 259 | } |
| 257 | 260 | |
| 261 | + /** |
|
| 262 | + * @param string $key |
|
| 263 | + */ |
|
| 258 | 264 | public function addParam($key, $val) |
| 259 | 265 | { |
| 260 | 266 | $this->query[$key] = $val; |