mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 01:39:33 +02:00
refactoring
This commit is contained in:
parent
d5cd0690d4
commit
72231c3926
1 changed files with 17 additions and 16 deletions
33
rector.php
33
rector.php
|
@ -3,23 +3,24 @@
|
||||||
use Rector\Config\RectorConfig;
|
use Rector\Config\RectorConfig;
|
||||||
use Rector\Set\ValueObject\LevelSetList;
|
use Rector\Set\ValueObject\LevelSetList;
|
||||||
use Rector\Set\ValueObject\SetList;
|
use Rector\Set\ValueObject\SetList;
|
||||||
|
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
|
||||||
|
|
||||||
return static function (RectorConfig $rectorConfig): void {
|
return RectorConfig::configure()
|
||||||
$rectorConfig->paths([
|
->withPaths([
|
||||||
__DIR__ . '/lam/help',
|
__DIR__ . '/lam/help',
|
||||||
__DIR__ . '/lam/lib',
|
__DIR__ . '/lam/lib',
|
||||||
__DIR__ . '/lam/templates',
|
__DIR__ . '/lam/templates',
|
||||||
__DIR__ . '/lam/tests',
|
__DIR__ . '/lam/tests',
|
||||||
]);
|
])
|
||||||
|
->withSets([
|
||||||
//$rectorConfig->fileExtensions(['php', 'inc']);
|
SetList::DEAD_CODE,
|
||||||
|
LevelSetList::UP_TO_PHP_81
|
||||||
$rectorConfig->skip([
|
])
|
||||||
__DIR__ . '/lam/lib/3rdParty',
|
->withSkip([
|
||||||
]);
|
__DIR__ . '/lam/lib/3rdParty',
|
||||||
|
NullToStrictStringFuncCallArgRector::class
|
||||||
$rectorConfig->sets([
|
])
|
||||||
SetList::DEAD_CODE,
|
->withFileExtensions([
|
||||||
LevelSetList::UP_TO_PHP_80
|
'php',
|
||||||
]);
|
// 'inc'
|
||||||
};
|
]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue