.php_cs.dist 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()
  3. ->in([__DIR__ . '/spec', __DIR__ . '/src', __DIR__ . '/stub', __DIR__ . '/tests'])
  4. ;
  5. return PhpCsFixer\Config::create()
  6. ->setRules([
  7. '@PSR2' => true,
  8. 'array_syntax' => ['syntax' => 'short'],
  9. 'binary_operator_spaces' => true,
  10. 'blank_line_before_return' => true,
  11. 'cast_spaces' => true,
  12. 'concat_space' => ['spacing' => 'one'],
  13. 'no_singleline_whitespace_before_semicolons' => true,
  14. 'not_operator_with_space' => true,
  15. 'ordered_imports' => true,
  16. 'phpdoc_align' => true,
  17. 'phpdoc_indent' => true,
  18. 'phpdoc_no_access' => true,
  19. 'phpdoc_no_alias_tag' => true,
  20. 'phpdoc_no_package' => true,
  21. 'phpdoc_scalar' => true,
  22. 'phpdoc_separation' => true,
  23. 'phpdoc_summary' => true,
  24. 'phpdoc_to_comment' => true,
  25. 'phpdoc_trim' => true,
  26. 'single_blank_line_at_eof' => true,
  27. 'ternary_operator_spaces' => true,
  28. ])
  29. ->setFinder($finder)
  30. ;