|
9 | 9 | final class Config extends PhpCsFixerConfig |
10 | 10 | { |
11 | 11 | public const RULES = [ |
12 | | - '@DoctrineAnnotation' => true, |
13 | | - '@PhpCsFixer' => true, |
14 | | - '@PhpCsFixer:risky' => true, |
15 | | - '@PHP80Migration:risky' => true, |
16 | | - '@PHP81Migration' => true, |
17 | | - '@PHPUnit84Migration:risky' => true, |
18 | | - 'Slam/final_abstract_public' => true, |
19 | | - 'Slam/final_internal_class' => true, |
20 | | - 'Slam/function_reference_space' => true, |
21 | | - 'Slam/php_only_slam_inline_comment_spacer' => true, |
22 | | - 'Slam/utf8' => true, |
23 | | - 'align_multiline_comment' => ['comment_type' => 'all_multiline'], |
24 | | - 'binary_operator_spaces' => ['default' => 'align_single_space'], |
25 | | - 'combine_consecutive_issets' => false, |
26 | | - 'combine_consecutive_unsets' => false, |
27 | | - 'comment_to_phpdoc' => false, |
28 | | - 'concat_space' => ['spacing' => 'one'], |
29 | | - 'date_time_create_from_format_call' => true, |
30 | | - 'date_time_immutable' => false, |
31 | | - 'error_suppression' => false, |
32 | | - 'final_class' => false, |
33 | | - 'final_internal_class' => false, |
34 | | - 'final_public_method_for_abstract_class' => false, |
35 | | - 'general_phpdoc_annotation_remove' => false, |
36 | | - 'global_namespace_import' => true, |
37 | | - 'group_import' => false, |
38 | | - 'header_comment' => false, |
39 | | - 'heredoc_indentation' => false, |
40 | | - 'mb_str_functions' => false, |
41 | | - 'method_argument_space' => ['keep_multiple_spaces_after_comma' => true], |
42 | | - 'native_constant_invocation' => true, |
43 | | - 'native_function_invocation' => ['include' => ['@internal']], |
44 | | - 'no_multiline_whitespace_around_double_arrow' => false, |
45 | | - 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true], |
46 | | - 'not_operator_with_space' => false, |
47 | | - 'not_operator_with_successor_space' => true, |
48 | | - 'ordered_class_elements' => ['order' => ['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property', 'construct', 'destruct', 'magic', 'phpunit', 'method']], |
49 | | - 'ordered_interfaces' => true, |
50 | | - 'php_unit_data_provider_static' => true, |
51 | | - 'php_unit_internal_class' => false, |
52 | | - 'php_unit_size_class' => false, |
53 | | - 'php_unit_strict' => false, |
54 | | - 'php_unit_test_class_requires_covers' => false, |
55 | | - 'phpdoc_add_missing_param_annotation' => false, |
56 | | - 'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'single'], |
57 | | - 'phpdoc_tag_casing' => true, |
58 | | - 'phpdoc_to_param_type' => false, |
59 | | - 'phpdoc_to_property_type' => true, |
60 | | - 'phpdoc_to_return_type' => false, |
61 | | - 'pow_to_exponentiation' => false, |
62 | | - // 'psr0' => true, |
63 | | - 'random_api_migration' => true, |
64 | | - 'regular_callable_call' => true, |
65 | | - 'simple_to_complex_string_variable' => false, |
66 | | - 'simplified_if_return' => true, |
67 | | - 'simplified_null_return' => false, |
68 | | - 'single_line_throw' => false, |
69 | | - 'space_after_semicolon' => true, |
70 | | - 'static_lambda' => false, |
71 | | - 'unary_operator_spaces' => false, |
72 | | - 'use_arrow_functions' => false, |
| 12 | + '@DoctrineAnnotation' => true, |
| 13 | + '@PhpCsFixer' => true, |
| 14 | + '@PhpCsFixer:risky' => true, |
| 15 | + '@PHP8x0Migration:risky' => true, |
| 16 | + '@PHP8x1Migration' => true, |
| 17 | + '@PHPUnit8x4Migration:risky' => true, |
| 18 | + 'Slam/final_abstract_public' => true, |
| 19 | + 'Slam/final_internal_class' => true, |
| 20 | + 'Slam/function_reference_space' => true, |
| 21 | + 'Slam/php_only_slam_inline_comment_spacer' => true, |
| 22 | + 'Slam/utf8' => true, |
| 23 | + 'align_multiline_comment' => ['comment_type' => 'all_multiline'], |
| 24 | + 'binary_operator_spaces' => ['default' => 'align_single_space'], |
| 25 | + 'combine_consecutive_issets' => false, |
| 26 | + 'combine_consecutive_unsets' => false, |
| 27 | + 'comment_to_phpdoc' => false, |
| 28 | + 'concat_space' => ['spacing' => 'one'], |
| 29 | + 'date_time_create_from_format_call' => true, |
| 30 | + 'date_time_immutable' => false, |
| 31 | + 'error_suppression' => false, |
| 32 | + 'final_class' => false, |
| 33 | + 'final_internal_class' => false, |
| 34 | + 'final_public_method_for_abstract_class' => false, |
| 35 | + 'general_phpdoc_annotation_remove' => false, |
| 36 | + 'global_namespace_import' => true, |
| 37 | + 'group_import' => false, |
| 38 | + 'header_comment' => false, |
| 39 | + 'heredoc_indentation' => false, |
| 40 | + 'mb_str_functions' => false, |
| 41 | + 'method_argument_space' => ['keep_multiple_spaces_after_comma' => true], |
| 42 | + 'native_constant_invocation' => true, |
| 43 | + 'native_function_invocation' => ['include' => ['@internal']], |
| 44 | + 'no_multiline_whitespace_around_double_arrow' => false, |
| 45 | + 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true], |
| 46 | + 'not_operator_with_space' => false, |
| 47 | + 'not_operator_with_successor_space' => true, |
| 48 | + 'ordered_class_elements' => ['order' => ['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property', 'construct', 'destruct', 'magic', 'phpunit', 'method']], |
| 49 | + 'ordered_interfaces' => true, |
| 50 | + 'php_unit_data_provider_static' => true, |
| 51 | + 'php_unit_internal_class' => false, |
| 52 | + 'php_unit_size_class' => false, |
| 53 | + 'php_unit_strict' => false, |
| 54 | + 'php_unit_test_class_requires_covers' => false, |
| 55 | + 'phpdoc_add_missing_param_annotation' => false, |
| 56 | + 'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'single'], |
| 57 | + 'phpdoc_tag_casing' => true, |
| 58 | + 'phpdoc_to_param_type' => false, |
| 59 | + 'phpdoc_to_property_type' => true, |
| 60 | + 'phpdoc_to_return_type' => false, |
| 61 | + 'pow_to_exponentiation' => false, |
| 62 | + 'random_api_migration' => true, |
| 63 | + 'regular_callable_call' => true, |
| 64 | + 'simple_to_complex_string_variable' => false, |
| 65 | + 'simplified_if_return' => true, |
| 66 | + 'simplified_null_return' => false, |
| 67 | + 'single_line_throw' => false, |
| 68 | + 'space_after_semicolon' => true, |
| 69 | + 'static_lambda' => false, |
| 70 | + 'unary_operator_spaces' => false, |
| 71 | + 'use_arrow_functions' => false, |
73 | 72 | ]; |
74 | 73 |
|
75 | 74 | /** @param array<string, mixed> $overriddenRules */ |
|
0 commit comments