.php_cs 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. $finder = Symfony\CS\Finder\DefaultFinder::create()
  3. ->files()
  4. ->in('src')
  5. ->in('tests')
  6. ->name('*.php');
  7. return Symfony\CS\Config\Config::create()
  8. ->setUsingCache(true)
  9. ->level(\Symfony\CS\FixerInterface::NONE_LEVEL)
  10. ->fixers(
  11. array(
  12. 'align_double_arrow',
  13. 'align_equals',
  14. 'concat_with_spaces',
  15. 'duplicate_semicolon',
  16. 'elseif',
  17. 'empty_return',
  18. 'encoding',
  19. 'eof_ending',
  20. 'extra_empty_lines',
  21. 'function_call_space',
  22. 'function_declaration',
  23. 'indentation',
  24. 'join_function',
  25. 'line_after_namespace',
  26. 'linefeed',
  27. 'list_commas',
  28. 'lowercase_constants',
  29. 'lowercase_keywords',
  30. 'method_argument_space',
  31. 'multiple_use',
  32. 'namespace_no_leading_whitespace',
  33. 'no_blank_lines_after_class_opening',
  34. 'no_empty_lines_after_phpdocs',
  35. 'parenthesis',
  36. 'php_closing_tag',
  37. 'phpdoc_indent',
  38. 'phpdoc_no_access',
  39. 'phpdoc_no_empty_return',
  40. 'phpdoc_no_package',
  41. 'phpdoc_params',
  42. 'phpdoc_scalar',
  43. 'phpdoc_separation',
  44. 'phpdoc_to_comment',
  45. 'phpdoc_trim',
  46. 'phpdoc_types',
  47. 'phpdoc_var_without_name',
  48. 'remove_lines_between_uses',
  49. 'return',
  50. 'self_accessor',
  51. 'short_array_syntax',
  52. 'short_tag',
  53. 'single_line_after_imports',
  54. 'single_quote',
  55. 'spaces_before_semicolon',
  56. 'spaces_cast',
  57. 'ternary_spaces',
  58. 'trailing_spaces',
  59. 'trim_array_spaces',
  60. 'unused_use',
  61. 'visibility',
  62. 'whitespacy_lines'
  63. )
  64. )
  65. ->finder($finder);