From 98b7bd68b4ae43c68b369212d4a61df0b335a83c Mon Sep 17 00:00:00 2001 From: Guillaume ZITTA Date: Tue, 14 Feb 2017 17:44:56 +0100 Subject: [PATCH] fix docstring and useless return --- src/Composer/Downloader/ZipDownloader.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index cbc96cef4..e1ee74381 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -70,7 +70,7 @@ class ZipDownloader extends ArchiveDownloader * @param string $file File to extract * @param string $path Path where to extract file * @param bool $isFallback If true it is called as a fallback and should not throw exception - * @return bool True if succeed + * @return bool|\Exception True if succeed, an Exception if not */ protected function extractWithSystemUnzip($file, $path, $isFallback) { @@ -92,7 +92,6 @@ class ZipDownloader extends ArchiveDownloader if ( $isFallback ) { $this->io->write($processError); - return; } return new \RuntimeException($processError); } @@ -102,7 +101,7 @@ class ZipDownloader extends ArchiveDownloader * * @param string $file File to extract * @param string $path Path where to extract file - * @return bool True if succeed + * @return bool|\Exception True if succeed, an Exception if not */ protected function extractWithZipArchive($file, $path) {