Skip to content

Commit

Permalink
Add configuration for php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 1, 2015
1 parent ab2283b commit 9a0cbb3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->files()
->in('src')
->in('tests')
->name('*.php');

return Symfony\CS\Config\Config::create()
->level(\Symfony\CS\FixerInterface::NONE_LEVEL)
->fixers(
array(
'duplicate_semicolon',
'empty_return',
'extra_empty_lines',
'join_function',
'list_commas',
'no_blank_lines_after_class_opening',
'no_empty_lines_after_phpdocs',
'phpdoc_indent',
'phpdoc_no_access',
'phpdoc_no_empty_return',
'phpdoc_no_package',
'phpdoc_params',
'phpdoc_scalar',
'phpdoc_to_comment',
'phpdoc_trim',
'return',
'self_accessor',
'single_quote',
'spaces_before_semicolon',
'spaces_cast',
'ternary_spaces',
'trim_array_spaces',
'unused_use',
'whitespacy_lines',
'align_double_arrow',
'align_equals',
'concat_with_spaces',
'short_array_syntax'
)
)
->finder($finder);

0 comments on commit 9a0cbb3

Please sign in to comment.