소스 검색

style fixes

Karoly Negyesi 11 년 전
부모
커밋
f4e9c74fee
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Installer/LibraryInstaller.php

+ 2 - 2
src/Composer/Installer/LibraryInstaller.php

@@ -43,7 +43,7 @@ class LibraryInstaller implements InstallerInterface
      * @param string      $type
      * @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->downloadManager = $composer->getDownloadManager();
@@ -160,7 +160,7 @@ class LibraryInstaller implements InstallerInterface
     {
         $initialDownloadPath = $this->getInstallPath($initial);
         $targetDownloadPath = $this->getInstallPath($target);
-        if ($targetDownloadPath != $initialDownloadPath) {
+        if ($targetDownloadPath !== $initialDownloadPath) {
             $this->filesystem->copyThenRemove($initialDownloadPath, $targetDownloadPath);
         }
         $this->downloadManager->update($initial, $target, $targetDownloadPath);