Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Commit 49f61ac

Browse files
committed
Merge pull request #1 from mainlycode/phergie
copied some fixers from phergie/phergie-irc-bot-react
2 parents 0208989 + c685bc7 commit 49f61ac

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.php_cs

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,29 @@
33
return Symfony\CS\Config\Config::create()
44
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
55
->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.
1629
))
1730
->finder(
1831
Symfony\CS\Finder\DefaultFinder::create()

0 commit comments

Comments
 (0)