You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
623 B

3 years ago
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()
  3. ->in(__DIR__.'/src')
  4. ->in(__DIR__.'/tests')
  5. ;
  6. return PhpCsFixer\Config::create()
  7. ->setRiskyAllowed(true)
  8. ->setRules([
  9. '@PSR2' => true,
  10. '@Symfony' => true,
  11. 'ordered_imports' => true,
  12. 'array_syntax' => ['syntax' => 'long'],
  13. 'no_superfluous_phpdoc_tags' => false,
  14. 'phpdoc_annotation_without_dot' => false,
  15. 'phpdoc_types_order' => false,
  16. 'phpdoc_summary' => false,
  17. 'phpdoc_to_comment' => false,
  18. 'phpdoc_align' => false,
  19. 'yoda_style' => false,
  20. ])
  21. ->setFinder($finder)
  22. ;