mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
优化代码
This commit is contained in:
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace app\common\command\build;
|
namespace app\common\command\build;
|
||||||
|
|
||||||
use app\common\exception\DirFindedException;
|
|
||||||
use app\common\tools\PathTools;
|
use app\common\tools\PathTools;
|
||||||
use app\common\tools\phpparser\NodeVisitorTools;
|
use app\common\tools\phpparser\NodeVisitorTools;
|
||||||
use League\Flysystem\Adapter\Local;
|
use League\Flysystem\Adapter\Local;
|
||||||
@@ -29,7 +28,7 @@ use PhpParser\Node\Stmt\UseUse;
|
|||||||
use PhpParser\NodeTraverser;
|
use PhpParser\NodeTraverser;
|
||||||
use PhpParser\NodeVisitorAbstract;
|
use PhpParser\NodeVisitorAbstract;
|
||||||
use PhpParser\ParserFactory;
|
use PhpParser\ParserFactory;
|
||||||
use PhpParser\PrettyPrinter\Standard;
|
use app\common\tools\phpparser\PrettyPrinterTools as Standard;
|
||||||
use think\console\Command;
|
use think\console\Command;
|
||||||
use think\console\Input;
|
use think\console\Input;
|
||||||
use think\console\input\Argument;
|
use think\console\input\Argument;
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace app\common\exception;
|
|
||||||
|
|
||||||
use Exception;
|
|
||||||
|
|
||||||
class DirFindedException extends Exception
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
10
app/common/tools/phpparser/PrettyPrinterTools.php
Normal file
10
app/common/tools/phpparser/PrettyPrinterTools.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\common\tools\phpparser;
|
||||||
|
|
||||||
|
use PhpParser\PrettyPrinter\Standard;
|
||||||
|
|
||||||
|
class PrettyPrinterTools extends Standard
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user