forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
35 lines (32 loc) · 1.41 KB
/
rector.php
File metadata and controls
35 lines (32 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php declare(strict_types=1);
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
use Rector\CodeQuality\Rector\Identical\StrlenZeroToIdenticalEmptyStringRector;
use Rector\CodeQuality\Rector\Ternary\TernaryEmptyArrayArrayDimFetchToCoalesceRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
use Rector\Config\RectorConfig;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
return RectorConfig::configure()
->withSymfonyContainerXml(__DIR__ . '/var/cache/phpstan_dev/Shopware_Core_DevOps_StaticAnalyze_StaticAnalyzeKernelPhpstan_devDebugContainer.xml')
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withFileExtensions(['php'])
->withSkip([
__DIR__ . '/src/Core/Framework/Script/ServiceStubs.php',
'**/vendor/*',
'**/node_modules/*',
'**/Resources/*',
])
->withRules([
ClassConstantToSelfClassRector::class,
DisallowedEmptyRuleFixerRector::class,
CountArrayToEmptyArrayComparisonRector::class,
SimplifyEmptyArrayCheckRector::class,
SimplifyEmptyCheckOnEmptyArrayRector::class,
StrlenZeroToIdenticalEmptyStringRector::class,
TernaryEmptyArrayArrayDimFetchToCoalesceRector::class,
])
;