mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
update some comments and redundant code
This commit is contained in:
@@ -33,7 +33,7 @@ function _zm_setup_loader()
|
||||
return true;
|
||||
});
|
||||
|
||||
// TODO: 然后加载插件目录下的插件
|
||||
// 这里好像没必要加载插件目录的插件,插件理论上不能在 Master 被加载
|
||||
|
||||
// 解析所有注册路径的文件,获取注解
|
||||
$parser->parse();
|
||||
|
||||
@@ -68,6 +68,7 @@ class TextGenerateCommand extends Command
|
||||
continue;
|
||||
}
|
||||
$time = '> 更新时间:' . date('Y-m-d', strtotime($v['published_at']));
|
||||
// TODO: 匹配用户名 @xxx 和 PR 链接 https://xxx.com,添加可点击的访问链接
|
||||
$line .= '## v' . $v['tag_name'] . "\r\n\r\n" . $time . "\r\n\r\n" . trim(str_replace("## What's Changed", '', $v['body'])) . "\r\n\r\n";
|
||||
}
|
||||
$line = str_replace("\r\n", "\n", $line);
|
||||
|
||||
@@ -24,7 +24,7 @@ class PluginMeta implements \JsonSerializable
|
||||
private array $dependencies;
|
||||
|
||||
/** @var null|string 插件的根目录 */
|
||||
private ?string $root_dir = null;
|
||||
private ?string $root_dir;
|
||||
|
||||
/** @var int 插件类型 */
|
||||
private int $plugin_type;
|
||||
|
||||
Reference in New Issue
Block a user