parent
6427dd7371
commit
0d40f2fa0b
5 changed files with 882 additions and 874 deletions
@ -1,20 +1,28 @@ |
||||
<?php |
||||
|
||||
return Symfony\CS\Config\Config::create() |
||||
->setUsingCache(true) |
||||
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) |
||||
// use default SYMFONY_LEVEL and extra fixers: |
||||
->fixers(array( |
||||
'concat_with_spaces', |
||||
'ordered_use', |
||||
'phpdoc_order', |
||||
'strict', |
||||
'strict_param', |
||||
'long_array_syntax', |
||||
)) |
||||
->finder( |
||||
Symfony\CS\Finder\DefaultFinder::create() |
||||
->in(__DIR__) |
||||
return PhpCsFixer\Config::create() |
||||
->setRiskyAllowed(true) |
||||
->setRules([ |
||||
'@Symfony' => true, |
||||
'@Symfony:risky' => true, |
||||
'combine_consecutive_unsets' => true, |
||||
'heredoc_to_nowdoc' => true, |
||||
'no_extra_consecutive_blank_lines' => array('break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'), |
||||
'no_unreachable_default_argument_value' => true, |
||||
'no_useless_else' => true, |
||||
'no_useless_return' => true, |
||||
'ordered_class_elements' => true, |
||||
'ordered_imports' => true, |
||||
'php_unit_strict' => false, |
||||
'phpdoc_order' => true, |
||||
// 'psr4' => true, |
||||
'strict_comparison' => true, |
||||
'strict_param' => true, |
||||
'concat_space' => array('spacing' => 'one'), |
||||
]) |
||||
->setFinder( |
||||
PhpCsFixer\Finder::create() |
||||
->exclude(array('vendor')) |
||||
->in(__DIR__) |
||||
) |
||||
; |
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue