mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-18 06:05:34 +08:00
add FileSystemTest
This commit is contained in:
@@ -129,9 +129,6 @@ class FileSystem
|
||||
$tokens = \PhpToken::tokenize(file_get_contents($path));
|
||||
$found = false;
|
||||
foreach ($tokens as $token) {
|
||||
if (!$token instanceof \PhpToken) {
|
||||
continue;
|
||||
}
|
||||
if ($token->is(T_CLASS)) {
|
||||
$found = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user