菜谱项目

.php_cs 1.9KB

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