Remove overrides

This commit is contained in:
John Paul E. Balandan, CPA 2022-09-13 17:39:22 +08:00
parent 8583e3a158
commit 8c06ea83c1
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610
3 changed files with 2 additions and 193 deletions

View File

@ -38,71 +38,7 @@ $finder = Finder::create()
__DIR__ . '/spark',
]);
$overrides = [
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
'blank_line_between_import_groups' => true,
'class_definition' => [
'multi_line_extends_each_single_line' => true,
'single_item_single_line' => true,
'single_line' => true,
'space_before_parenthesis' => true,
'inline_constructor_arguments' => true,
],
'control_structure_braces' => true,
'curly_braces_position' => [
'control_structures_opening_brace' => 'same_line',
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_classes_opening_brace' => 'same_line',
'allow_single_line_empty_anonymous_classes' => true,
'allow_single_line_anonymous_functions' => true,
],
'date_time_create_from_format_call' => false,
'function_declaration' => [
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
'new_with_braces' => [
'named_class' => true,
'anonymous_class' => true,
],
'no_multiple_statements_per_line' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'no_useless_nullsafe_operator' => true,
'phpdoc_order' => [
'order' => ['param', 'return', 'throws'],
],
'phpdoc_separation' => [
'groups' => [
['immutable', 'psalm-immutable'],
['param', 'phpstan-param', 'psalm-param'],
['phpstan-pure', 'psalm-pure'],
['readonly', 'psalm-readonly'],
['return', 'phpstan-return', 'psalm-return'],
['template', 'phpstan-template', 'psalm-template'],
['template-covariant', 'phpstan-template-covariant', 'psalm-template-covariant'],
['phpstan-type', 'psalm-type'],
['var', 'phpstan-var', 'psalm-var'],
],
],
'single_import_per_statement' => ['group_to_single_imports' => true],
'single_line_comment_spacing' => true,
'statement_indentation' => true,
'types_spaces' => [
'space' => 'none',
'space_multiple_catch' => 'none',
],
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
// >>>>>>>>>>>>>>>>>>>>>>>>>
];
$overrides = [];
$options = [
'cacheFile' => 'build/.php-cs-fixer.cache',

View File

@ -30,71 +30,7 @@ $finder = Finder::create()
__DIR__ . '/admin/starter/builds',
]);
$overrides = [
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
'blank_line_between_import_groups' => true,
'class_definition' => [
'multi_line_extends_each_single_line' => true,
'single_item_single_line' => true,
'single_line' => true,
'space_before_parenthesis' => true,
'inline_constructor_arguments' => true,
],
'control_structure_braces' => true,
'curly_braces_position' => [
'control_structures_opening_brace' => 'same_line',
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_classes_opening_brace' => 'same_line',
'allow_single_line_empty_anonymous_classes' => true,
'allow_single_line_anonymous_functions' => true,
],
'date_time_create_from_format_call' => false,
'function_declaration' => [
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
'new_with_braces' => [
'named_class' => true,
'anonymous_class' => true,
],
'no_multiple_statements_per_line' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'no_useless_nullsafe_operator' => true,
'phpdoc_order' => [
'order' => ['param', 'return', 'throws'],
],
'phpdoc_separation' => [
'groups' => [
['immutable', 'psalm-immutable'],
['param', 'phpstan-param', 'psalm-param'],
['phpstan-pure', 'psalm-pure'],
['readonly', 'psalm-readonly'],
['return', 'phpstan-return', 'psalm-return'],
['template', 'phpstan-template', 'psalm-template'],
['template-covariant', 'phpstan-template-covariant', 'psalm-template-covariant'],
['phpstan-type', 'psalm-type'],
['var', 'phpstan-var', 'psalm-var'],
],
],
'single_import_per_statement' => ['group_to_single_imports' => true],
'single_line_comment_spacing' => true,
'statement_indentation' => true,
'types_spaces' => [
'space' => 'none',
'space_multiple_catch' => 'none',
],
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
// >>>>>>>>>>>>>>>>>>>>>>>>>
];
$overrides = [];
$options = [
'cacheFile' => 'build/.php-cs-fixer.no-header.cache',

View File

@ -33,69 +33,6 @@ $overrides = [
'php_unit_internal_class' => false,
'no_unused_imports' => false,
'class_attributes_separation' => false,
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
'blank_line_between_import_groups' => true,
'class_definition' => [
'multi_line_extends_each_single_line' => true,
'single_item_single_line' => true,
'single_line' => true,
'space_before_parenthesis' => true,
'inline_constructor_arguments' => true,
],
'control_structure_braces' => true,
'curly_braces_position' => [
'control_structures_opening_brace' => 'same_line',
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_classes_opening_brace' => 'same_line',
'allow_single_line_empty_anonymous_classes' => true,
'allow_single_line_anonymous_functions' => true,
],
'date_time_create_from_format_call' => false,
'function_declaration' => [
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
'new_with_braces' => [
'named_class' => true,
'anonymous_class' => true,
],
'no_multiple_statements_per_line' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'no_useless_nullsafe_operator' => true,
'phpdoc_order' => [
'order' => ['param', 'return', 'throws'],
],
'phpdoc_separation' => [
'groups' => [
['immutable', 'psalm-immutable'],
['param', 'phpstan-param', 'psalm-param'],
['phpstan-pure', 'psalm-pure'],
['readonly', 'psalm-readonly'],
['return', 'phpstan-return', 'psalm-return'],
['template', 'phpstan-template', 'psalm-template'],
['template-covariant', 'phpstan-template-covariant', 'psalm-template-covariant'],
['phpstan-type', 'psalm-type'],
['var', 'phpstan-var', 'psalm-var'],
],
],
'single_import_per_statement' => ['group_to_single_imports' => true],
'single_line_comment_spacing' => true,
'statement_indentation' => true,
'types_spaces' => [
'space' => 'none',
'space_multiple_catch' => 'none',
],
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
// >>>>>>>>>>>>>>>>>>>>>>>>>
];
$options = [