1
0
Fork 0
pull/2705/head
Jordi Boggiano 2014-02-13 12:48:12 +01:00
parent 9d2d828b70
commit e03057156c
1 changed files with 3 additions and 4 deletions

View File

@ -179,7 +179,7 @@ class DownloadManager
$this->filesystem->ensureDirectoryExists($targetDir); $this->filesystem->ensureDirectoryExists($targetDir);
$downloader = $this->getDownloaderForInstalledPackage($package); $downloader = $this->getDownloaderForInstalledPackage($package);
if($downloader) { if ($downloader) {
$downloader->download($package, $targetDir); $downloader->download($package, $targetDir);
} }
} }
@ -196,8 +196,7 @@ class DownloadManager
public function update(PackageInterface $initial, PackageInterface $target, $targetDir) public function update(PackageInterface $initial, PackageInterface $target, $targetDir)
{ {
$downloader = $this->getDownloaderForInstalledPackage($initial); $downloader = $this->getDownloaderForInstalledPackage($initial);
if(!$downloader) { if (!$downloader) {
return; return;
} }
@ -237,7 +236,7 @@ class DownloadManager
public function remove(PackageInterface $package, $targetDir) public function remove(PackageInterface $package, $targetDir)
{ {
$downloader = $this->getDownloaderForInstalledPackage($package); $downloader = $this->getDownloaderForInstalledPackage($package);
if($downloader) { if ($downloader) {
$downloader->remove($package, $targetDir); $downloader->remove($package, $targetDir);
} }
} }