Advertisement
wlarch

Untitled

Nov 26th, 2019
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 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.         'binary_operator_spaces' => array(
  13.             'align_double_arrow' => true,
  14.             'align_equals' => true,
  15.         ),
  16.         'no_useless_return' => true,
  17.         'braces' => array(
  18.             'allow_single_line_closure' => true,
  19.         ),
  20.        
  21.         'concat_space' => array('spacing' => 'one'),
  22.         'declare_equal_normalize' => true,
  23.         'function_typehint_space' => true,
  24.         'hash_to_slash_comment' => true,
  25.         'include' => true,
  26.         'lowercase_cast' => true,
  27.         'method_argument_space' => [
  28.             'ensure_fully_multiline' => true,
  29.             'on_multiline' => 'ensure_fully_multiline'
  30.         ],
  31.  
  32.         'native_function_casing' => true,
  33.         'no_blank_lines_after_class_opening' => true,
  34.         'no_blank_lines_after_phpdoc' => true,
  35.         'no_empty_comment' => true,
  36.         'no_useless_else' => true,
  37.         'no_empty_statement' => true,
  38.         'no_extra_blank_lines' => array(
  39.             'curly_brace_block',
  40.             'extra',
  41.             'square_brace_block',
  42.             'throw',
  43.             'use',
  44.         ),
  45.      
  46.         'no_multiline_whitespace_around_double_arrow' => true,
  47.    
  48.         'no_spaces_around_offset' => true,
  49.         'no_trailing_comma_in_list_call' => true,
  50.        
  51.         'no_unused_imports' => true,
  52.         'no_whitespace_before_comma_in_array' => true,
  53.         'no_whitespace_in_blank_line' => true,
  54.         'object_operator_without_whitespace' => true,
  55.      
  56.         'single_blank_line_before_namespace' => true,
  57.  
  58.         'ternary_operator_spaces' => true,
  59.         'trim_array_spaces' => true,
  60.         'unary_operator_spaces' => true,
  61.         'whitespace_after_comma_in_array' => true,
  62.     ))
  63.     ->setLineEnding("\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement