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