.php-cs-fixer.dist.php 780 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. $config = (new PhpCsFixer\Config())
  3. ->setRiskyAllowed(true)
  4. ->setRules([
  5. '@PHP71Migration:risky' => true,
  6. '@PHPUnit75Migration:risky' => true,
  7. '@Symfony' => true,
  8. 'declare_strict_types' => false,
  9. 'global_namespace_import' => false,
  10. 'no_superfluous_phpdoc_tags' => [
  11. 'allow_mixed' => true,
  12. ],
  13. 'phpdoc_annotation_without_dot' => false,
  14. 'phpdoc_summary' => false,
  15. 'phpdoc_to_comment' => false,
  16. 'single_line_throw' => false,
  17. 'void_return' => false,
  18. 'yoda_style' => false,
  19. ])
  20. ->setFinder(
  21. PhpCsFixer\Finder::create()
  22. ->in(__DIR__.'/src')
  23. ->in(__DIR__.'/tests')
  24. ->name('*.php')
  25. )
  26. ;
  27. return $config;