mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 01:39:33 +02:00
refactoring
This commit is contained in:
parent
cb2953f5a2
commit
a4b413a7b9
1 changed files with 7 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
<?php
|
||||
|
||||
use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector;
|
||||
use Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector;
|
||||
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
|
||||
use Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector;
|
||||
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
|
||||
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
|
||||
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
|
||||
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
|
||||
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
|
||||
|
@ -43,7 +45,11 @@ return RectorConfig::configure()
|
|||
FlipTypeControlToUseExclusiveTypeRector::class,
|
||||
InlineArrayReturnAssignRector::class,
|
||||
// TODO private method check is unreliable, recheck with newer rector version
|
||||
RemoveUnusedPrivateMethodRector::class
|
||||
RemoveUnusedPrivateMethodRector::class,
|
||||
// TODO parent call check is unreliable, recheck with newer rector version
|
||||
RemoveParentCallWithoutParentRector::class,
|
||||
// TODO inherited properties check is unreliable, recheck with newer rector version
|
||||
CompleteDynamicPropertiesRector::class
|
||||
])
|
||||
->withFileExtensions([
|
||||
'php',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue