使用 Laravel,我的内核文件$routeMiddleware
像往常一样具有我的属性数组。
protected $routeMiddleware = [
'access' => \App\Middleware\AllowAccess::class,
'auth' => \App\Middleware\Authenticate::class,
...
正在更改为此运行我运行修复程序:
protected $routeMiddleware = [
'access' => \App\Middleware\AllowAccess::class,
'auth' => \App\Middleware\Authenticate::class,
...
我的修复规则集如下所示:
$config->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'length'],
'no_unused_imports' => true,
])
->setIndent("\t")
->setFinder($finder);
我可以添加什么规则来解决这个问题?