Guest User

Untitled

a guest
Jan 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. <?php
  2.  
  3. return PhpCsFixer\Config::create()
  4. ->setRules(array(
  5. '@PSR2' => true,
  6. 'array_indentation' => true,
  7. 'array_syntax' => array('syntax' => 'short'),
  8. 'combine_consecutive_unsets' => true,
  9. 'method_separation' => true,
  10. 'no_multiline_whitespace_before_semicolons' => true,
  11. 'single_quote' => true,
  12.  
  13. 'binary_operator_spaces' => array(
  14. 'align_double_arrow' => true,
  15. 'align_equals' => true,
  16. ),
  17. // 'blank_line_after_opening_tag' => true,
  18. // 'blank_line_before_return' => true,
  19. 'braces' => array(
  20. 'allow_single_line_closure' => true,
  21. ),
  22. // 'cast_spaces' => true,
  23. // 'class_definition' => array('singleLine' => true),
  24. 'concat_space' => array('spacing' => 'one'),
  25. 'declare_equal_normalize' => true,
  26. 'function_typehint_space' => true,
  27. 'hash_to_slash_comment' => true,
  28. 'include' => true,
  29. 'lowercase_cast' => true,
  30. // 'native_function_casing' => true,
  31. // 'new_with_braces' => true,
  32. // 'no_blank_lines_after_class_opening' => true,
  33. // 'no_blank_lines_after_phpdoc' => true,
  34. // 'no_empty_comment' => true,
  35. 'no_empty_phpdoc' => true,
  36. // 'no_empty_statement' => true,
  37. 'no_extra_consecutive_blank_lines' => array(
  38. 'curly_brace_block',
  39. 'extra',
  40. 'parenthesis_brace_block',
  41. 'square_brace_block',
  42. 'throw',
  43. 'use',
  44. ),
  45. // 'no_leading_import_slash' => true,
  46. // 'no_leading_namespace_whitespace' => true,
  47. // 'no_mixed_echo_print' => array('use' => 'echo'),
  48. 'no_multiline_whitespace_around_double_arrow' => true,
  49. // 'no_short_bool_cast' => true,
  50. // 'no_singleline_whitespace_before_semicolons' => true,
  51. 'no_spaces_around_offset' => true,
  52. // 'no_trailing_comma_in_list_call' => true,
  53. // 'no_trailing_comma_in_singleline_array' => true,
  54. // 'no_unneeded_control_parentheses' => true,
  55. 'no_unused_imports' => true,
  56. 'no_whitespace_before_comma_in_array' => true,
  57. 'no_whitespace_in_blank_line' => true,
  58. // 'normalize_index_brace' => true,
  59. 'object_operator_without_whitespace' => true,
  60. // 'php_unit_fqcn_annotation' => true,
  61. // 'phpdoc_align' => true,
  62. // 'phpdoc_annotation_without_dot' => true,
  63. 'phpdoc_indent' => true,
  64. // 'phpdoc_inline_tag' => true,
  65. // 'phpdoc_no_access' => true,
  66. // 'phpdoc_no_alias_tag' => true,
  67. // 'phpdoc_no_empty_return' => true,
  68. // 'phpdoc_no_package' => true,
  69. // 'phpdoc_no_useless_inheritdoc' => true,
  70. // 'phpdoc_return_self_reference' => true,
  71. // 'phpdoc_scalar' => true,
  72. // 'phpdoc_separation' => true,
  73. // 'phpdoc_single_line_var_spacing' => true,
  74. 'phpdoc_summary' => true,
  75. // 'phpdoc_to_comment' => true,
  76. // 'phpdoc_trim' => true,
  77. // 'phpdoc_types' => true,
  78. // 'phpdoc_var_without_name' => true,
  79. // 'pre_increment' => true,
  80. // 'return_type_declaration' => true,
  81. // 'self_accessor' => true,
  82. // 'short_scalar_cast' => true,
  83. 'single_blank_line_before_namespace' => true,
  84. // 'single_class_element_per_statement' => true,
  85. // 'space_after_semicolon' => true,
  86. // 'standardize_not_equals' => true,
  87. 'ternary_operator_spaces' => true,
  88. // 'trailing_comma_in_multiline_array' => true,
  89. 'trim_array_spaces' => true,
  90. 'unary_operator_spaces' => true,
  91. 'whitespace_after_comma_in_array' => true,
  92. ))
  93. //->setIndent("\t")
  94. ->setLineEnding("\n")
  95. ;
Add Comment
Please, Sign In to add comment