modified condidion for autoloaded filenames

This commit is contained in:
Anton Grebnev
2011-10-13 14:02:09 +04:00
parent 6a06a6960d
commit 30931b1571

View File

@ -41,9 +41,9 @@ class AutoloadBuilder
foreach ($iterator as $file) {
// skip non php files
$e = explode('.', $file->getFileName());
if ((end($e) !== 'php') || strstr((string)$file, 'test')) {
continue;
}
if ((end($e) !== 'php') || strstr($file->getFileName(), 'test')) {
continue;
}
$content = file_get_contents($file->getRealPath());
$matches = array();