Browse Source

Update src/Composer/Downloader/ArchiveDownloader.php

Code style fix
Артём Курапов 12 năm trước cách đây
mục cha
commit
274b54c2b5
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      src/Composer/Downloader/ArchiveDownloader.php

+ 2 - 3
src/Composer/Downloader/ArchiveDownloader.php

@@ -47,10 +47,9 @@ abstract class ArchiveDownloader extends FileDownloader
             if (1 === count($contentDir)) {
                 $contentDir = $contentDir[0];
 
-                if(is_file($contentDir)){
+                if (is_file($contentDir)) {
                     rename($contentDir, $path . '/' . basename($contentDir));
-                }
-                else{
+                } else {
                     
                     // Rename the content directory to avoid error when moving up
                     // a child folder with the same name