|
3 | 3 | return Symfony\CS\Config\Config::create() |
4 | 4 | ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) |
5 | 5 | ->fixers(array( |
6 | | - 'align_double_arrow', |
7 | | - 'align_equals', |
8 | | - 'concat_with_spaces', |
9 | | - 'ordered_use', |
10 | | - 'extra_empty_lines', |
11 | | - 'phpdoc_params', |
12 | | - 'remove_lines_between_uses', |
13 | | - 'return', |
14 | | - 'unused_use', |
15 | | - 'whitespacy_lines', |
| 6 | + // Symfony |
| 7 | + 'extra_empty_lines', // Removes extra empty lines. |
| 8 | + 'blankline_after_open_tag', // Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline. |
| 9 | + 'multiline_array_trailing_comma', // PHP multi-line arrays should have a trailing comma. |
| 10 | + 'new_with_braces', // All instances created with new keyword must be followed by braces. |
| 11 | + 'phpdoc_params', // All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically. |
| 12 | + 'phpdoc_separation', // Annotations in phpdocs should be grouped together so that annotations of the same type immediately follow each other, and annotations of a different type are separated by a single blank line. |
| 13 | + 'remove_lines_between_uses', // Removes line breaks between use statements. |
| 14 | + 'return', // An empty line feed should precede a return statement. |
| 15 | + 'single_array_no_trailing_comma', // PHP single-line arrays should not have trailing comma. |
| 16 | + 'single_quote', // Convert double quotes to single quotes for simple strings. |
| 17 | + 'standardize_not_equal', // Replace all <> with !=. |
| 18 | + 'unused_use', // Unused use statements must be removed. |
| 19 | + 'whitespacy_lines', // Remove trailing whitespace at the end of blank lines. |
| 20 | + |
| 21 | + // contrib |
| 22 | + 'align_double_arrow', // Align double arrow symbols in consecutive lines. |
| 23 | + 'align_equals', // Align equals symbols in consecutive lines. |
| 24 | + 'concat_with_spaces', // Concatenation should be used with at least one whitespace around. |
| 25 | + 'logical_not_operators_with_successor_space', // Logical NOT operators (!) should have one trailing whitespace. |
| 26 | + 'ordered_use', // Ordering use statements. |
| 27 | + 'phpdoc_order', // Annotations in phpdocs should be ordered so that param annotations come first, then throws annotations, then return annotations. |
| 28 | + 'short_array_syntax', // PHP arrays should use the PHP 5.4 short-syntax. |
16 | 29 | )) |
17 | 30 | ->finder( |
18 | 31 | Symfony\CS\Finder\DefaultFinder::create() |
|
0 commit comments