Signed-off-by: Kevin Decherf <kevin@kdecherf.com>pull/43/head
parent
bbe9021fe7
commit
694f0308fe
2 changed files with 24 additions and 19 deletions
@ -1,20 +1,25 @@ |
||||
<?php |
||||
|
||||
return Symfony\CS\Config\Config::create() |
||||
return PhpCsFixer\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() |
||||
->setRiskyAllowed(true) |
||||
->setRules([ |
||||
'concat_space' => [ |
||||
'spacing' => 'one', |
||||
], |
||||
'ordered_imports' => true, |
||||
'phpdoc_order' => true, |
||||
'strict_comparison' => true, |
||||
'strict_param' => true, |
||||
'array_syntax' => [ |
||||
'syntax' => 'long', |
||||
], |
||||
]) |
||||
->setFinder( |
||||
PhpCsFixer\Finder::create() |
||||
->exclude([ |
||||
'vendor', |
||||
]) |
||||
->in(__DIR__) |
||||
->exclude(array('vendor')) |
||||
) |
||||
; |
||||
|
||||
Loading…
Reference in new issue