| @@ -8,7 +8,6 @@ | ||
| 8 | 8 | |
| 9 | 9 | use Composer\Config as CConfig; | 
| 10 | 10 | use Composer\IO; | 
| 11 | -use Composer\Downloader; | |
| 12 | 11 | use Composer\Util; | 
| 13 | 12 | |
| 14 | 13 | /** | 
| @@ -80,6 +80,9 @@ discard block | ||
| 80 | 80 | return $cache = false; | 
| 81 | 81 | } | 
| 82 | 82 | |
| 83 | + /** | |
| 84 | + * @param string $url | |
| 85 | + */ | |
| 83 | 86 | protected function getProxy($url) | 
| 84 | 87 |      { | 
| 85 | 88 |          if (isset($_SERVER['no_proxy'])) { | 
| @@ -255,11 +258,18 @@ 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; | 
| 261 | 267 | } | 
| 262 | 268 | |
| 269 | + /** | |
| 270 | + * @param string $key | |
| 271 | + * @param string $val | |
| 272 | + */ | |
| 263 | 273 | public function addHeader($key, $val) | 
| 264 | 274 |      { | 
| 265 | 275 | $this->headers[strtolower($key)] = $val; | 
| @@ -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(); | 
| @@ -10,10 +10,7 @@ | ||
| 10 | 10 | use Composer\IO; | 
| 11 | 11 | use Composer\Plugin as CPlugin; | 
| 12 | 12 | use Composer\EventDispatcher; | 
| 13 | -use Composer\Package; | |
| 14 | -use Composer\Script; | |
| 15 | 13 | use Composer\Installer; | 
| 16 | -use Composer\DependencyResolver; | |
| 17 | 14 | |
| 18 | 15 | class Plugin implements | 
| 19 | 16 | CPlugin\PluginInterface, |