refactoring

This commit is contained in:
Roland Gruber 2024-12-06 20:31:17 +01:00
parent 6fbb2d1338
commit 146c975a61

View file

@ -1,5 +1,7 @@
<?php <?php
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
use Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector;
use Rector\Config\RectorConfig; use Rector\Config\RectorConfig;
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector; use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
@ -20,7 +22,8 @@ return RectorConfig::configure()
]) ])
->withSets([ ->withSets([
SetList::DEAD_CODE, SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_81 LevelSetList::UP_TO_PHP_81,
SetList::CODE_QUALITY,
]) ])
->withSkip([ ->withSkip([
__DIR__ . '/lam/lib/3rdParty', __DIR__ . '/lam/lib/3rdParty',
@ -30,6 +33,8 @@ return RectorConfig::configure()
StaticCallOnNonStaticToInstanceCallRector::class, StaticCallOnNonStaticToInstanceCallRector::class,
StringifyStrNeedlesRector::class, StringifyStrNeedlesRector::class,
RestoreDefaultNullToNullableTypePropertyRector::class, RestoreDefaultNullToNullableTypePropertyRector::class,
ForRepeatedCountToOwnVariableRector::class,
SimplifyEmptyCheckOnEmptyArrayRector::class
]) ])
->withFileExtensions([ ->withFileExtensions([
'php', 'php',