@@ -29,54 +29,112 @@ return PhpCsFixer\Config::create()
2929 ],
3030 'braces ' => true ,
3131 'cast_spaces ' => true ,
32+ 'compact_nullable_typehint ' => true ,
3233 'concat_space ' => ['spacing ' => 'one ' ],
34+ 'declare_equal_normalize ' => ['space ' => 'none ' ],
35+ 'dir_constant ' => true ,
3336 'elseif ' => true ,
3437 'encoding ' => true ,
3538 'full_opening_tag ' => true ,
3639 'function_declaration ' => true ,
3740 'header_comment ' => ['header ' => $ header , 'separate ' => 'none ' ],
3841 'indentation_type ' => true ,
3942 'line_ending ' => true ,
43+ 'list_syntax ' => ['syntax ' => 'short ' ],
44+ 'lowercase_cast ' => true ,
4045 'lowercase_constants ' => true ,
4146 'lowercase_keywords ' => true ,
42- 'method_argument_space ' => true ,
47+ 'magic_constant_casing ' => true ,
48+ 'method_argument_space ' => ['ensure_fully_multiline ' => true ],
49+ 'method_separation ' => true ,
50+ 'modernize_types_casting ' => true ,
51+ 'native_function_casing ' => true ,
4352 'native_function_invocation ' => true ,
4453 'no_alias_functions ' => true ,
4554 'no_blank_lines_after_class_opening ' => true ,
4655 'no_blank_lines_after_phpdoc ' => true ,
4756 'no_closing_tag ' => true ,
57+ 'no_empty_comment ' => true ,
4858 'no_empty_phpdoc ' => true ,
4959 'no_empty_statement ' => true ,
5060 'no_extra_consecutive_blank_lines ' => true ,
61+ 'no_homoglyph_names ' => true ,
62+ 'no_leading_import_slash ' => true ,
5163 'no_leading_namespace_whitespace ' => true ,
64+ 'no_mixed_echo_print ' => ['use ' => 'print ' ],
65+ 'no_null_property_initialization ' => true ,
66+ 'no_short_bool_cast ' => true ,
67+ 'no_short_echo_tag ' => true ,
5268 'no_singleline_whitespace_before_semicolons ' => true ,
5369 'no_spaces_after_function_name ' => true ,
5470 'no_spaces_inside_parenthesis ' => true ,
71+ 'no_superfluous_elseif ' => true ,
5572 'no_trailing_comma_in_list_call ' => true ,
73+ 'no_trailing_comma_in_singleline_array ' => true ,
5674 'no_trailing_whitespace ' => true ,
75+ 'no_trailing_whitespace_in_comment ' => true ,
76+ 'no_unneeded_control_parentheses ' => true ,
77+ 'no_unneeded_curly_braces ' => true ,
78+ 'no_unneeded_final_method ' => true ,
79+ 'no_unreachable_default_argument_value ' => true ,
5780 'no_unused_imports ' => true ,
81+ 'no_useless_else ' => true ,
82+ 'no_whitespace_before_comma_in_array ' => true ,
5883 'no_whitespace_in_blank_line ' => true ,
84+ 'non_printable_character ' => true ,
85+ 'normalize_index_brace ' => true ,
86+ 'object_operator_without_whitespace ' => true ,
87+ 'ordered_class_elements ' => [
88+ 'use_trait ' ,
89+ 'constant_public ' ,
90+ 'constant_protected ' ,
91+ 'constant_private ' ,
92+ 'property_public ' ,
93+ 'property_protected ' ,
94+ 'property_private ' ,
95+ 'construct ' ,
96+ 'destruct ' ,
97+ 'magic ' ,
98+ 'phpunit ' ,
99+ 'method_public ' ,
100+ 'method_protected ' ,
101+ 'method_private '
102+ ],
59103 'ordered_imports ' => true ,
104+ 'phpdoc_add_missing_param_annotation ' => true ,
60105 'phpdoc_align ' => true ,
106+ 'phpdoc_annotation_without_dot ' => true ,
61107 'phpdoc_indent ' => true ,
62108 'phpdoc_no_access ' => true ,
63109 'phpdoc_no_empty_return ' => true ,
64110 'phpdoc_no_package ' => true ,
111+ 'phpdoc_order ' => true ,
112+ 'phpdoc_return_self_reference ' => true ,
65113 'phpdoc_scalar ' => true ,
66114 'phpdoc_separation ' => true ,
115+ 'phpdoc_single_line_var_spacing ' => true ,
67116 'phpdoc_to_comment ' => true ,
68117 'phpdoc_trim ' => true ,
69118 'phpdoc_types ' => true ,
119+ 'phpdoc_types_order ' => true ,
70120 'phpdoc_var_without_name ' => true ,
121+ 'pow_to_exponentiation ' => true ,
122+ 'protected_to_private ' => true ,
123+ 'return_type_declaration ' => ['space_before ' => 'none ' ],
71124 'self_accessor ' => true ,
125+ 'short_scalar_cast ' => true ,
72126 'simplified_null_return ' => true ,
73127 'single_blank_line_at_eof ' => true ,
74128 'single_import_per_statement ' => true ,
75129 'single_line_after_imports ' => true ,
76130 'single_quote ' => true ,
77- 'ternary_operator_spaces ' => true ,
131+ 'standardize_not_equals ' => true ,
132+ 'ternary_to_null_coalescing ' => true ,
78133 'trim_array_spaces ' => true ,
134+ 'unary_operator_spaces ' => true ,
79135 'visibility_required ' => true ,
136+ //'void_return' => true,
137+ 'whitespace_after_comma_in_array ' => true ,
80138 ]
81139 )
82140 ->setFinder (
0 commit comments