main
Jordi Boggiano 11 years ago
parent 9d2d828b70
commit e03057156c

@ -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);
} }
} }

Loading…
Cancel
Save