mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 16:15:34 +08:00
cs-fix
This commit is contained in:
@@ -83,7 +83,7 @@ class BuildCommand extends Command
|
||||
$separator = '\\' . DIRECTORY_SEPARATOR;
|
||||
// 只打包 bin / config / resources / src / vendor 目录以及 composer.json / composer.lock / entry.php
|
||||
$files = array_filter($files, function ($file) use ($separator) {
|
||||
return preg_match('/^(bin|config|resources|src|vendor)' . $separator . '|^(composer\\.json|README\\.md)$/', $file);
|
||||
return preg_match('/^(bin|config|resources|src|vendor)' . $separator . '|^(composer\.json|README\.md)$/', $file);
|
||||
});
|
||||
sort($files);
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ abstract class Command extends \Symfony\Component\Console\Command\Command implem
|
||||
protected OutputInterface $output;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
* @internal 不建议覆写此方法,建议使用 {@see handle()} 方法
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
|
||||
@@ -18,9 +18,6 @@ class TextGenerateCommand extends Command
|
||||
$this->setDescription('生成一些框架本身的文本(内部' . PHP_EOL . '当前包含:class-alias-md,update-log-md');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function handle(): int
|
||||
{
|
||||
return match ($this->input->getArgument('name')) {
|
||||
|
||||
@@ -20,9 +20,6 @@ class PluginInstallCommand extends PluginCommand
|
||||
$this->addOption('github-token', null, InputOption::VALUE_REQUIRED, '提供的 GitHub Token');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function handle(): int
|
||||
{
|
||||
$addr = $this->input->getArgument('address');
|
||||
|
||||
@@ -27,7 +27,6 @@ class PluginMakeCommand extends PluginCommand
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @throws FileSystemException
|
||||
*/
|
||||
protected function handle(): int
|
||||
|
||||
@@ -19,9 +19,6 @@ class PluginPackCommand extends PluginCommand
|
||||
$this->addOption('build-dir', 'D', InputOption::VALUE_REQUIRED, '指定输出文件位置', WORKING_DIR . '/build');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function handle(): int
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -17,9 +17,6 @@ class PluginRemoveCommand extends PluginCommand
|
||||
$this->addArgument('name', InputArgument::REQUIRED, '插件名称');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function handle(): int
|
||||
{
|
||||
$plugin_name = $this->input->getArgument('name');
|
||||
|
||||
Reference in New Issue
Block a user