فهرست منبع

chache to return (file_exists() && include );

Marcin Chyłek 13 سال پیش
والد
کامیت
0e0b5ac222
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      bin/compile
  2. 1 1
      bin/composer

+ 1 - 1
bin/compile

@@ -2,7 +2,7 @@
 <?php
 
 function autoload($file) {
-    return (file_exists($file) && include $file) ? true : false;
+    return (file_exists($file) && include $file);
 }
 
 if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) {

+ 1 - 1
bin/composer

@@ -2,7 +2,7 @@
 <?php
 
 function autoload($file) {
-    return (file_exists($file) && include $file) ? true : false;
+    return (file_exists($file) && include $file);
 }
 
 if (!autoload(__DIR__.'/../../../.composer/autoload.php') && !autoload(__DIR__.'/../vendor/.composer/autoload.php')) {