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, ]);