.php_cs 623 B

123456789101112131415161718192021222324
  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. ;