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

Commit

Permalink
Merge pull request #1 from mainlycode/phergie
Browse files Browse the repository at this point in the history
copied some fixers from phergie/phergie-irc-bot-react
  • Loading branch information
othillo committed Nov 23, 2015
2 parents 0208989 + c685bc7 commit 49f61ac
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,29 @@
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers(array(
'align_double_arrow',
'align_equals',
'concat_with_spaces',
'ordered_use',
'extra_empty_lines',
'phpdoc_params',
'remove_lines_between_uses',
'return',
'unused_use',
'whitespacy_lines',
// Symfony
'extra_empty_lines', // Removes extra empty lines.
'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.
'multiline_array_trailing_comma', // PHP multi-line arrays should have a trailing comma.
'new_with_braces', // All instances created with new keyword must be followed by braces.
'phpdoc_params', // All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically.
'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.
'remove_lines_between_uses', // Removes line breaks between use statements.
'return', // An empty line feed should precede a return statement.
'single_array_no_trailing_comma', // PHP single-line arrays should not have trailing comma.
'single_quote', // Convert double quotes to single quotes for simple strings.
'standardize_not_equal', // Replace all <> with !=.
'unused_use', // Unused use statements must be removed.
'whitespacy_lines', // Remove trailing whitespace at the end of blank lines.

// contrib
'align_double_arrow', // Align double arrow symbols in consecutive lines.
'align_equals', // Align equals symbols in consecutive lines.
'concat_with_spaces', // Concatenation should be used with at least one whitespace around.
'logical_not_operators_with_successor_space', // Logical NOT operators (!) should have one trailing whitespace.
'ordered_use', // Ordering use statements.
'phpdoc_order', // Annotations in phpdocs should be ordered so that param annotations come first, then throws annotations, then return annotations.
'short_array_syntax', // PHP arrays should use the PHP 5.4 short-syntax.
))
->finder(
Symfony\CS\Finder\DefaultFinder::create()
Expand Down

0 comments on commit 49f61ac

Please sign in to comment.