1
0
Fork 0

style fixes

pull/2279/head
Karoly Negyesi 2013-09-20 09:58:46 +02:00
parent 6c393c1c69
commit f4e9c74fee
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class LibraryInstaller implements InstallerInterface
* @param string $type * @param string $type
* @param Filesystem $filesystem * @param Filesystem $filesystem
*/ */
public function __construct(IOInterface $io, Composer $composer, $type = 'library', $filesystem = NULL) public function __construct(IOInterface $io, Composer $composer, $type = 'library', $filesystem = null)
{ {
$this->composer = $composer; $this->composer = $composer;
$this->downloadManager = $composer->getDownloadManager(); $this->downloadManager = $composer->getDownloadManager();
@ -160,7 +160,7 @@ class LibraryInstaller implements InstallerInterface
{ {
$initialDownloadPath = $this->getInstallPath($initial); $initialDownloadPath = $this->getInstallPath($initial);
$targetDownloadPath = $this->getInstallPath($target); $targetDownloadPath = $this->getInstallPath($target);
if ($targetDownloadPath != $initialDownloadPath) { if ($targetDownloadPath !== $initialDownloadPath) {
$this->filesystem->copyThenRemove($initialDownloadPath, $targetDownloadPath); $this->filesystem->copyThenRemove($initialDownloadPath, $targetDownloadPath);
} }
$this->downloadManager->update($initial, $target, $targetDownloadPath); $this->downloadManager->update($initial, $target, $targetDownloadPath);