Simplify PHP CS Fixer config
This commit is contained in:
parent
3ee310f20a
commit
95e33edc1c
@ -6,18 +6,13 @@ if (!file_exists(__DIR__.'/src')) {
|
|||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setRules([
|
->setRules([
|
||||||
|
'@PHP71Migration' => true,
|
||||||
|
'@PHPUnit75Migration:risky' => true,
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
'@Symfony:risky' => true,
|
'@Symfony:risky' => true,
|
||||||
'@PHPUnit75Migration:risky' => true,
|
|
||||||
'php_unit_dedicate_assert' => ['target' => '5.6'],
|
|
||||||
'array_syntax' => ['syntax' => 'short'],
|
|
||||||
'fopen_flags' => false,
|
|
||||||
'protected_to_private' => false,
|
'protected_to_private' => false,
|
||||||
'native_constant_invocation' => true,
|
'native_constant_invocation' => true,
|
||||||
'combine_nested_dirname' => true,
|
|
||||||
'list_syntax' => ['syntax' => 'short'],
|
'list_syntax' => ['syntax' => 'short'],
|
||||||
'visibility_required' => ['property', 'method', 'const'],
|
|
||||||
'ternary_to_null_coalescing' => true,
|
|
||||||
])
|
])
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setFinder(
|
->setFinder(
|
||||||
|
Reference in New Issue
Block a user