From 146c975a61d87d415b409f0d94c7093fc80db85a Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 6 Dec 2024 20:31:17 +0100 Subject: [PATCH] refactoring --- rector.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rector.php b/rector.php index fd6120e10..47b7a8886 100644 --- a/rector.php +++ b/rector.php @@ -1,5 +1,7 @@ withSets([ SetList::DEAD_CODE, - LevelSetList::UP_TO_PHP_81 + LevelSetList::UP_TO_PHP_81, + SetList::CODE_QUALITY, ]) ->withSkip([ __DIR__ . '/lam/lib/3rdParty', @@ -30,6 +33,8 @@ return RectorConfig::configure() StaticCallOnNonStaticToInstanceCallRector::class, StringifyStrNeedlesRector::class, RestoreDefaultNullToNullableTypePropertyRector::class, + ForRepeatedCountToOwnVariableRector::class, + SimplifyEmptyCheckOnEmptyArrayRector::class ]) ->withFileExtensions([ 'php',