rector.php 951 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. use Rector\CodingStyle\Rector\ClassLike\NewlineBetweenClassLikeStmtsRector;
  4. use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
  5. use Rector\Config\RectorConfig;
  6. use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
  7. use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
  8. return RectorConfig::configure()
  9. ->withPaths([
  10. __DIR__.'/src',
  11. __DIR__.'/tests',
  12. ])
  13. ->withSkip([
  14. ReadOnlyPropertyRector::class,
  15. EncapsedStringsToSprintfRector::class,
  16. NewlineBetweenClassLikeStmtsRector::class,
  17. StringClassNameToClassConstantRector::class => [
  18. __DIR__.'/src/Server/Http/Controllers/OAuthRegisterController.php',
  19. ],
  20. ])
  21. ->withPreparedSets(
  22. deadCode: true,
  23. codeQuality: true,
  24. codingStyle: true,
  25. typeDeclarations: true,
  26. earlyReturn: true,
  27. )->withPhpSets(php82: true);