.php-cs-fixer.php 553 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. $finder = PhpCsFixer\Finder::create()
  4. ->files()
  5. ->in(__DIR__ . '/bin')
  6. ->in(__DIR__ . '/src')
  7. ->in(__DIR__ . '/tests')
  8. ->append([__FILE__])
  9. ->notName('DefaultRuleProvider.php')
  10. ;
  11. $config = new PhpCsFixer\Config();
  12. $config
  13. ->setFinder($finder)
  14. ->setRiskyAllowed(true)
  15. ->setRules([
  16. '@PSR2' => true,
  17. 'no_empty_phpdoc' => true,
  18. 'php_unit_fqcn_annotation' => true,
  19. 'php_unit_test_annotation' => true,
  20. 'phpdoc_trim' => true,
  21. ]);
  22. return $config;