Update PHP-CS-Fixer configuration
This commit is contained in:
parent
cb24f86f7f
commit
d9fb64a927
|
|
@ -54,13 +54,15 @@ $config->setFinder($finder)
|
|||
'yield',
|
||||
],
|
||||
],
|
||||
'braces' => true,
|
||||
'braces' => [
|
||||
'position_after_anonymous_constructs' => 'next',
|
||||
],
|
||||
'cast_spaces' => true,
|
||||
'class_attributes_separation' => [
|
||||
'elements' => [
|
||||
'const' => 'one',
|
||||
'method' => 'one',
|
||||
'property' => 'one'
|
||||
'property' => 'only_if_meta'
|
||||
]
|
||||
],
|
||||
'class_definition' => true,
|
||||
|
|
@ -86,6 +88,7 @@ $config->setFinder($finder)
|
|||
'function_declaration' => true,
|
||||
'function_to_constant' => true,
|
||||
'function_typehint_space' => true,
|
||||
'get_class_to_class_keyword' => true,
|
||||
'global_namespace_import' => [
|
||||
'import_classes' => true,
|
||||
'import_constants' => true,
|
||||
|
|
@ -117,9 +120,16 @@ $config->setFinder($finder)
|
|||
'multiline_whitespace_before_semicolons' => true,
|
||||
'native_constant_invocation' => false,
|
||||
'native_function_casing' => false,
|
||||
'native_function_invocation' => false,
|
||||
'native_function_invocation' => [
|
||||
'include' => [
|
||||
'@internal',
|
||||
],
|
||||
],
|
||||
'native_function_type_declaration_casing' => true,
|
||||
'new_with_braces' => false,
|
||||
'new_with_braces' => [
|
||||
'named_class' => false,
|
||||
'anonymous_class' => false,
|
||||
],
|
||||
'no_alias_functions' => true,
|
||||
'no_alias_language_construct_call' => true,
|
||||
'no_alternative_syntax' => true,
|
||||
|
|
@ -149,14 +159,14 @@ $config->setFinder($finder)
|
|||
'no_superfluous_phpdoc_tags' => [
|
||||
'allow_mixed' => true,
|
||||
],
|
||||
'no_trailing_comma_in_list_call' => true,
|
||||
'no_trailing_comma_in_singleline_array' => true,
|
||||
'no_trailing_comma_in_singleline' => true,
|
||||
'no_trailing_whitespace' => true,
|
||||
'no_trailing_whitespace_in_comment' => true,
|
||||
'no_trailing_whitespace_in_string' => true,
|
||||
'no_unneeded_control_parentheses' => true,
|
||||
'no_unneeded_curly_braces' => true,
|
||||
'no_unneeded_final_method' => true,
|
||||
'no_unneeded_import_alias' => true,
|
||||
'no_unreachable_default_argument_value' => true,
|
||||
'no_unset_cast' => true,
|
||||
'no_unset_on_property' => true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue