.php_cs.dist 877 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()
  3. ->in('demo')
  4. ->in('Highlight')
  5. ->in('HighlightUtilities')
  6. ->in('test')
  7. ->in('tools')
  8. ->exclude('tools/lib_*')
  9. ;
  10. return PhpCsFixer\Config::create()
  11. ->setRules([
  12. '@PSR1' => true,
  13. '@PSR2' => true,
  14. '@Symfony' => true,
  15. 'array_syntax' => ['syntax' => 'long'],
  16. 'concat_space' => ['spacing' => 'one'],
  17. 'no_useless_else' => true,
  18. 'no_useless_return' => true,
  19. 'phpdoc_align' => true,
  20. 'phpdoc_order' => true,
  21. 'phpdoc_trim_consecutive_blank_line_separation' => true,
  22. 'single_quote' => false,
  23. 'ternary_to_null_coalescing' => false,
  24. 'trailing_comma_in_multiline_array' => true,
  25. 'yoda_style' => [
  26. 'equal' => false,
  27. 'identical' => false,
  28. ],
  29. ])
  30. ->setFinder($finder)
  31. ;