|
| 1 | +<?php |
| 2 | + |
| 3 | +use Symfony\CS\Config\Config; |
| 4 | +use Symfony\CS\FixerInterface; |
| 5 | +use Symfony\CS\Finder\DefaultFinder; |
| 6 | + |
| 7 | +$fixers = [ |
| 8 | + 'blankline_after_open_tag', |
| 9 | + 'braces', |
| 10 | + 'concat_without_spaces', |
| 11 | + 'double_arrow_multiline_whitespaces', |
| 12 | + 'duplicate_semicolon', |
| 13 | + 'elseif', |
| 14 | + 'empty_return', |
| 15 | + 'encoding', |
| 16 | + 'eof_ending', |
| 17 | + 'extra_empty_lines', |
| 18 | + 'function_call_space', |
| 19 | + 'function_declaration', |
| 20 | + 'include', |
| 21 | + 'indentation', |
| 22 | + 'join_function', |
| 23 | + 'line_after_namespace', |
| 24 | + 'linefeed', |
| 25 | + 'list_commas', |
| 26 | + 'logical_not_operators_with_successor_space', |
| 27 | + 'lowercase_constants', |
| 28 | + 'lowercase_keywords', |
| 29 | + 'method_argument_space', |
| 30 | + 'multiline_array_trailing_comma', |
| 31 | + 'multiline_spaces_before_semicolon', |
| 32 | + 'multiple_use', |
| 33 | + 'namespace_no_leading_whitespace', |
| 34 | + 'no_blank_lines_after_class_opening', |
| 35 | + 'no_empty_lines_after_phpdocs', |
| 36 | + 'object_operator', |
| 37 | + 'operators_spaces', |
| 38 | + 'parenthesis', |
| 39 | + 'phpdoc_indent', |
| 40 | + 'phpdoc_inline_tag', |
| 41 | + 'phpdoc_no_access', |
| 42 | + 'phpdoc_no_package', |
| 43 | + 'phpdoc_scalar', |
| 44 | + 'phpdoc_short_description', |
| 45 | + 'phpdoc_to_comment', |
| 46 | + 'phpdoc_trim', |
| 47 | + 'phpdoc_type_to_var', |
| 48 | + 'phpdoc_var_without_name', |
| 49 | + 'remove_leading_slash_use', |
| 50 | + 'remove_lines_between_uses', |
| 51 | + 'return', |
| 52 | + 'self_accessor', |
| 53 | + 'short_array_syntax', |
| 54 | + 'short_echo_tag', |
| 55 | + 'short_tag', |
| 56 | + 'single_array_no_trailing_comma', |
| 57 | + 'single_blank_line_before_namespace', |
| 58 | + 'single_line_after_imports', |
| 59 | + 'single_quote', |
| 60 | + 'spaces_before_semicolon', |
| 61 | + 'spaces_cast', |
| 62 | + 'standardize_not_equal', |
| 63 | + 'ternary_spaces', |
| 64 | + 'trailing_spaces', |
| 65 | + 'trim_array_spaces', |
| 66 | + 'unalign_equals', |
| 67 | + 'unary_operators_spaces', |
| 68 | + 'unused_use', |
| 69 | + 'visibility', |
| 70 | + 'whitespacy_lines', |
| 71 | +]; |
| 72 | + |
| 73 | +return Config::create() |
| 74 | + ->finder(DefaultFinder::create()->in(__DIR__)) |
| 75 | + ->fixers($fixers) |
| 76 | + ->level(FixerInterface::NONE_LEVEL) |
| 77 | + ->setUsingCache(true); |
0 commit comments