@@ -7,5 +7,82 @@ $finder = \PhpCsFixer\Finder::create()
7
7
return \PhpCsFixer \Config::create ()
8
8
->setRules ([
9
9
'@PSR2 ' => true ,
10
+
11
+ 'array_syntax ' => ['syntax ' => 'short ' ],
12
+ 'binary_operator_spaces ' => [
13
+ 'align_equals ' => false ,
14
+ 'align_double_arrow ' => null ,
15
+ ],
16
+ 'blank_line_after_opening_tag ' => true ,
17
+ 'cast_spaces ' => true ,
18
+ 'concat_space ' => ['spacing ' => 'one ' ],
19
+ 'declare_equal_normalize ' => true ,
20
+ 'dir_constant ' => true ,
21
+ 'ereg_to_preg ' => true ,
22
+ 'function_typehint_space ' => true ,
23
+ 'hash_to_slash_comment ' => true ,
24
+ 'heredoc_to_nowdoc ' => true ,
25
+ 'include ' => true ,
26
+ 'lowercase_cast ' => true ,
27
+ 'method_separation ' => true ,
28
+ 'modernize_types_casting ' => true ,
29
+ 'native_function_casing ' => true ,
30
+ 'new_with_braces ' => true ,
31
+ 'no_alias_functions ' => true ,
32
+ 'no_blank_lines_after_class_opening ' => true ,
33
+ 'no_blank_lines_after_phpdoc ' => true ,
34
+ 'no_empty_comment ' => true ,
35
+ 'no_empty_phpdoc ' => true ,
36
+ 'no_empty_statement ' => true ,
37
+ 'no_extra_consecutive_blank_lines ' => true ,
38
+ 'no_leading_import_slash ' => true ,
39
+ 'no_leading_namespace_whitespace ' => true ,
40
+ 'no_mixed_echo_print ' => true ,
41
+ 'no_multiline_whitespace_around_double_arrow ' => true ,
42
+ 'no_php4_constructor ' => true ,
43
+ 'no_short_bool_cast ' => true ,
44
+ 'no_singleline_whitespace_before_semicolons ' => true ,
45
+ 'no_spaces_around_offset ' => true ,
46
+ 'no_trailing_comma_in_list_call ' => true ,
47
+ 'no_trailing_comma_in_singleline_array ' => true ,
48
+ 'no_unneeded_control_parentheses ' => true ,
49
+ 'no_unused_imports ' => true ,
50
+ 'no_useless_return ' => true ,
51
+ 'no_whitespace_before_comma_in_array ' => true ,
52
+ 'no_whitespace_in_blank_line ' => true ,
53
+ 'normalize_index_brace ' => true ,
54
+ 'object_operator_without_whitespace ' => true ,
55
+ 'ordered_imports ' => true ,
56
+ 'php_unit_construct ' => true ,
57
+ 'php_unit_dedicate_assert ' => true ,
58
+ 'php_unit_strict ' => true ,
59
+ 'phpdoc_add_missing_param_annotation ' => true ,
60
+ 'phpdoc_annotation_without_dot ' => true ,
61
+ 'phpdoc_indent ' => true ,
62
+ 'phpdoc_inline_tag ' => true ,
63
+ 'phpdoc_no_access ' => true ,
64
+ 'phpdoc_no_alias_tag ' => true ,
65
+ 'phpdoc_no_package ' => true ,
66
+ 'phpdoc_scalar ' => true ,
67
+ 'phpdoc_single_line_var_spacing ' => true ,
68
+ 'phpdoc_summary ' => true ,
69
+ 'phpdoc_trim ' => true ,
70
+ 'phpdoc_types ' => true ,
71
+ 'phpdoc_var_without_name ' => true ,
72
+ 'pow_to_exponentiation ' => true ,
73
+ 'psr4 ' => true ,
74
+ 'return_type_declaration ' => true ,
75
+ 'self_accessor ' => true ,
76
+ 'short_scalar_cast ' => true ,
77
+ 'single_blank_line_before_namespace ' => true ,
78
+ 'single_quote ' => true ,
79
+ 'space_after_semicolon ' => true ,
80
+ 'standardize_not_equals ' => true ,
81
+ 'strict_comparison ' => true ,
82
+ 'strict_param ' => true ,
83
+ 'ternary_operator_spaces ' => true ,
84
+ 'trailing_comma_in_multiline_array ' => true ,
85
+ 'trim_array_spaces ' => true ,
86
+ 'whitespace_after_comma_in_array ' => true ,
10
87
])
11
88
->setFinder ($ finder );
0 commit comments