PHP Coding Standards Fixer > update configuration

This commit is contained in:
Meritoo
2019-04-05 23:49:27 +02:00
parent 4f55f33385
commit 0f64705132

View File

@@ -4,11 +4,14 @@ $finder = PhpCsFixer\Finder::create()
->in([ ->in([
__DIR__ . '/src', __DIR__ . '/src',
__DIR__ . '/tests', __DIR__ . '/tests',
]); ])
;
return PhpCsFixer\Config::create() return PhpCsFixer\Config::create()
->setRules([ ->setRules([
'@Symfony' => true, '@Symfony' => true,
'@PhpCsFixer' => true,
'@PHP71Migration' => true,
'binary_operator_spaces' => [ 'binary_operator_spaces' => [
'align_double_arrow' => true, 'align_double_arrow' => true,
], ],
@@ -24,4 +27,5 @@ return PhpCsFixer\Config::create()
'phpdoc_summary' => false, 'phpdoc_summary' => false,
'trim_array_spaces' => false, 'trim_array_spaces' => false,
]) ])
->setFinder($finder); ->setFinder($finder)
;