Няма описание

.php_cs 1.9KB

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