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