mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
refactoring
This commit is contained in:
parent
6fbb2d1338
commit
146c975a61
1 changed files with 6 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue