1
0
Fork 0

Add PHPCSFixer config

pull/3894/merge
Jordi Boggiano 2015-04-15 01:21:35 +01:00
parent dbfd47eeca
commit fda4a594f9
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ phpunit.xml
.vagrant
Vagrantfile
.idea
.php_cs.cache

18
.php_cs Normal file
View File

@ -0,0 +1,18 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->files()
->name('*.php')
->exclude('Fixtures')
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
;
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->fixers(array(
'psr0', 'encoding', 'short_tag', 'braces', 'elseif', 'eof_ending', 'function_declaration', 'indentation', 'line_after_namespace', 'linefeed', 'lowercase_constants', 'lowercase_keywords', 'multiple_use', 'php_closing_tag', 'trailing_spaces', 'visibility', 'duplicate_semicolon', 'extra_empty_lines', 'include', 'namespace_no_leading_whitespace', 'object_operator', 'operators_spaces', 'phpdoc_params', 'return', 'single_array_no_trailing_comma', 'spaces_cast', 'standardize_not_equal', 'ternary_spaces', 'unused_use', 'whitespacy_lines',
))
->finder($finder)
;