@@ -53,52 +53,39 @@ public function setFinder($finder): ConfigInterface
5353 public function getRules (): array
5454 {
5555 $ rules = [
56- '@PSR12 ' => true ,
57- 'array_syntax ' => ['syntax ' => 'short ' ],
58- 'concat_space ' => ['spacing ' => 'one ' ],
56+ '@PER-CS2.0 ' => true ,
5957 'include ' => true ,
6058 'new_with_braces ' => true ,
6159 'no_empty_statement ' => true ,
62- 'no_leading_import_slash ' => true ,
6360 'no_leading_namespace_whitespace ' => true ,
6461 'no_multiline_whitespace_around_double_arrow ' => true ,
6562 'multiline_whitespace_before_semicolons ' => true ,
6663 'no_singleline_whitespace_before_semicolons ' => true ,
6764 'no_trailing_comma_in_singleline_array ' => true ,
6865 'no_unused_imports ' => true ,
69- 'no_whitespace_in_blank_line ' => true ,
7066 'object_operator_without_whitespace ' => true ,
7167 'ordered_imports ' => true ,
7268 'standardize_not_equals ' => true ,
73- 'ternary_operator_spaces ' => true ,
7469 // mygento
7570 'phpdoc_order ' => true ,
7671 'phpdoc_types ' => true ,
7772 'phpdoc_add_missing_param_annotation ' => true ,
7873 'single_quote ' => true ,
7974 'standardize_not_equals ' => true ,
8075 'ternary_to_null_coalescing ' => true ,
81- 'lowercase_cast ' => true ,
8276 'no_empty_comment ' => true ,
8377 'no_empty_phpdoc ' => true ,
84- 'return_type_declaration ' => true ,
8578 'no_useless_return ' => true ,
8679 'align_multiline_comment ' => true ,
87- 'array_indentation ' => true ,
88- 'binary_operator_spaces ' => true ,
89- 'blank_line_after_opening_tag ' => true ,
9080 'blank_line_before_statement ' => ['statements ' => ['return ' , 'throw ' , 'try ' ]],
91- 'cast_spaces ' => true ,
9281 'class_attributes_separation ' => ['elements ' => ['const ' => 'none ' , 'method ' => 'one ' , 'property ' => 'none ' , 'trait_import ' => 'none ' ]],
9382 'explicit_indirect_variable ' => true ,
9483 'explicit_string_variable ' => true ,
9584 'function_typehint_space ' => true ,
9685 'lowercase_cast ' => true ,
97- 'lowercase_static_reference ' => true ,
9886 'method_chaining_indentation ' => true ,
9987 'multiline_comment_opening_closing ' => true ,
10088 'native_function_casing ' => true ,
101- 'no_blank_lines_after_class_opening ' => true ,
10289 'no_blank_lines_after_phpdoc ' => true ,
10390 'no_extra_blank_lines ' => [
10491 'tokens ' => ['break ' , 'continue ' , 'curly_brace_block ' , 'extra ' , 'parenthesis_brace_block ' , 'return ' , 'square_brace_block ' , 'throw ' , 'use ' ],
@@ -123,13 +110,10 @@ public function getRules(): array
123110 'phpdoc_types_order ' => [
124111 'null_adjustment ' => 'always_last ' ,
125112 ],
126- //'phpdoc_var_without_name' => false,
127113 'return_assignment ' => true ,
128- //'single_line_comment_style' => false,
129- 'trailing_comma_in_multiline ' => true ,
130114 'trim_array_spaces ' => true ,
131- 'unary_operator_spaces ' => true ,
132115 'whitespace_after_comma_in_array ' => true ,
116+ 'type_declaration_spaces ' => true ,
133117 ];
134118
135119 if (null !== $ this ->header ) {
0 commit comments