diff --git a/src/Composer/Downloader/DownloaderInterface.php b/src/Composer/Downloader/DownloaderInterface.php index b424bba3e..d399ebf88 100644 --- a/src/Composer/Downloader/DownloaderInterface.php +++ b/src/Composer/Downloader/DownloaderInterface.php @@ -15,21 +15,9 @@ namespace Composer\Downloader; use Composer\Package\PackageInterface; /** - * Package Downloader - * - * @author Kirill chEbba Chebunin - */ -interface DownloaderInterface + * @author Konstantin Kudryashov + */ +interface DownloaderInterface { - /** - * Download package - * - * @param PackageInterface $package Downloaded package - * @param string $path Download to - * @param string $url Download from - * @param string|null $checksum Package checksum - * - * @throws \UnexpectedValueException - */ function download(PackageInterface $package, $path, $url, $checksum = null); } diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index d7a98bed7..90fa49baa 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -42,4 +42,4 @@ class GitDownloader implements DownloaderInterface system('git archive --format=tar --prefix='.escapeshellarg($package->getName()).' --remote='.escapeshellarg($url).' master | tar -xf -'); } } -} \ No newline at end of file +} diff --git a/src/Composer/Downloader/PearDownloader.php b/src/Composer/Downloader/PearDownloader.php index 56e45c677..0f4c86289 100644 --- a/src/Composer/Downloader/PearDownloader.php +++ b/src/Composer/Downloader/PearDownloader.php @@ -66,4 +66,4 @@ class PearDownloader implements DownloaderInterface } chdir($cwd); } -} \ No newline at end of file +} diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 1c5fa547a..94a7eac0e 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -73,4 +73,4 @@ class ZipDownloader implements DownloaderInterface throw new \UnexpectedValueException($zipName.' is not a valid zip archive, got error code '.$retval); } } -} \ No newline at end of file +}