.circleci
assets
bin
data
inc
lang
patches
tests
utils
views
.gitignore
.phpcs.xml.dist
LICENSE
autoload.php
composer.json
composer.lock
constants.php
loco.xml
package-lock.json
package.json
phpstan.neon.dist
phpunit.xml.dist
readme.txt
rector.php
setuptest.sh
sunrise.php
uninstall.php
wp-multisite-waas.php
29 lines
631 B
PHP
29 lines
631 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
|
|
return RectorConfig::configure()
|
|
->withPaths(
|
|
[
|
|
__DIR__ . '/inc',
|
|
__DIR__ . '/views',
|
|
]
|
|
)
|
|
->withAutoloadPaths(
|
|
[
|
|
__DIR__ . '/vendor/squizlabs/php_codesniffer/autoload.php',
|
|
__DIR__ . '/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php',
|
|
]
|
|
)
|
|
->withSkipPath(__DIR__ . '/vendor',)
|
|
->withImportNames(false)
|
|
->withPhpSets()
|
|
->withCodeQualityLevel(15)
|
|
->withCodingStyleLevel(5)
|
|
->withRules(
|
|
[
|
|
\Utils\Rector\Rector\YodaConditionsRector::class,
|
|
]
|
|
);
|