浏览代码

Fix feedback from 7222c1

Jordi Boggiano 13 年之前
父节点
当前提交
e90a8dc4c9
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/Composer/Autoload/AutoloadGenerator.php

+ 1 - 2
src/Composer/Autoload/AutoloadGenerator.php

@@ -31,7 +31,7 @@ class AutoloadGenerator
 <?php
 
 // autoload.php generated by Composer
-if (!class_exists('Composer\\Autoload\\ClassLoader')) {
+if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
     require __DIR__.'/ClassLoader.php';
 }
 
@@ -120,7 +120,6 @@ EOF;
 
         file_put_contents($targetDir.'/autoload.php', $autoloadFile);
         file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
-        file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
         copy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
     }