Using Laravel, my kernel file has my $routeMiddleware
property array as normal.
protected $routeMiddleware = [
'access' => \App\Middleware\AllowAccess::class,
'auth' => \App\Middleware\Authenticate::class,
...
is being changed to this run I run fixer:
protected $routeMiddleware = [
'access' => \App\Middleware\AllowAccess::class,
'auth' => \App\Middleware\Authenticate::class,
...
My fixer rule set looks like so:
$config->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'length'],
'no_unused_imports' => true,
])
->setIndent("\t")
->setFinder($finder);
What rule can I add to fix this?