.php-cs-fixer.dist.php 707 B

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