modified condidion for autoloaded filenames
This commit is contained in:
		| @ -41,9 +41,9 @@ class AutoloadBuilder | |||||||
|             foreach ($iterator as $file) { |             foreach ($iterator as $file) { | ||||||
|                 // skip non php files |                 // skip non php files | ||||||
|                 $e = explode('.', $file->getFileName()); |                 $e = explode('.', $file->getFileName()); | ||||||
|                 if ((end($e) !== 'php') || strstr((string)$file, 'test')) { |                 if ((end($e) !== 'php') || strstr($file->getFileName(), 'test')) { | ||||||
|                     continue; |                    continue; | ||||||
|                 } |                } | ||||||
|                  |                  | ||||||
|                 $content = file_get_contents($file->getRealPath()); |                 $content = file_get_contents($file->getRealPath()); | ||||||
|                 $matches = array(); |                 $matches = array(); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user