Something went wrong. Try again.
Store your seeds
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector;use Rector\Config\RectorConfig;use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;use Rector\TypeDeclaration\Rector\FuncCall\AddArrayFunctionClosureParamTypeRector;use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;use RectorLaravel\Set\LaravelSetList;
return RectorConfig::configure() ->withPaths([ __DIR__.'/app', __DIR__.'/bootstrap', __DIR__.'/config', __DIR__.'/public', __DIR__.'/resources', __DIR__.'/routes', __DIR__.'/tests', ]) ->withSkip([ __DIR__.'/bootstrap/cache', __DIR__.'/storage', __DIR__.'/vendor', AddArrowFunctionReturnTypeRector::class, AddArrayFunctionClosureParamTypeRector::class, CompactToVariablesRector::class, ]) ->withPhpSets() ->withPreparedSets( deadCode: true, codeQuality: true, typeDeclarations: true, earlyReturn: true, ) ->withComposerBased(laravel: true) ->withSets([ LaravelSetList::LARAVEL_CODE_QUALITY, LaravelSetList::LARAVEL_COLLECTION, LaravelSetList::LARAVEL_TYPE_DECLARATIONS, ]) ->withRules([ DeclareStrictTypesRector::class, ]);