@@ -8,7 +8,10 @@ For the full copyright and license information, please view the LICENSE
8
8
file that was distributed with this source code.
9
9
EOF;
10
10
11
- $ finder = PhpCsFixer \Finder::create ()->in (__DIR__ );
11
+ $ finder = PhpCsFixer \Finder::create ()
12
+ ->files ()
13
+ ->in (__DIR__ . '/src ' )
14
+ ->in (__DIR__ . '/tests ' );
12
15
13
16
return PhpCsFixer \Config::create ()
14
17
->setFinder ($ finder )
@@ -59,6 +62,11 @@ return PhpCsFixer\Config::create()
59
62
'encoding ' => true ,
60
63
'full_opening_tag ' => true ,
61
64
'function_declaration ' => true ,
65
+ 'global_namespace_import ' => [
66
+ 'import_classes ' => true ,
67
+ 'import_constants ' => true ,
68
+ 'import_functions ' => true ,
69
+ ],
62
70
'header_comment ' => ['header ' => $ header , 'separate ' => 'none ' ],
63
71
'indentation_type ' => true ,
64
72
'is_null ' => true ,
@@ -74,9 +82,9 @@ return PhpCsFixer\Config::create()
74
82
'modernize_types_casting ' => true ,
75
83
'multiline_comment_opening_closing ' => true ,
76
84
'multiline_whitespace_before_semicolons ' => true ,
77
- 'native_constant_invocation ' => true ,
78
- 'native_function_casing ' => true ,
79
- 'native_function_invocation ' => true ,
85
+ 'native_constant_invocation ' => false ,
86
+ 'native_function_casing ' => false ,
87
+ 'native_function_invocation ' => false ,
80
88
'new_with_braces ' => false ,
81
89
'no_alias_functions ' => true ,
82
90
'no_alternative_syntax ' => true ,
@@ -101,7 +109,9 @@ return PhpCsFixer\Config::create()
101
109
'no_spaces_after_function_name ' => true ,
102
110
'no_spaces_inside_parenthesis ' => true ,
103
111
'no_superfluous_elseif ' => true ,
104
- 'no_superfluous_phpdoc_tags ' => true ,
112
+ 'no_superfluous_phpdoc_tags ' => [
113
+ 'allow_mixed ' => true ,
114
+ ],
105
115
'no_trailing_comma_in_list_call ' => true ,
106
116
'no_trailing_comma_in_singleline_array ' => true ,
107
117
'no_trailing_whitespace ' => true ,
@@ -143,12 +153,18 @@ return PhpCsFixer\Config::create()
143
153
'method_private_static ' ,
144
154
],
145
155
],
146
- 'ordered_imports ' => true ,
156
+ 'ordered_imports ' => [
157
+ 'imports_order ' => [
158
+ PhpCsFixer \Fixer \Import \OrderedImportsFixer::IMPORT_TYPE_CONST ,
159
+ PhpCsFixer \Fixer \Import \OrderedImportsFixer::IMPORT_TYPE_FUNCTION ,
160
+ PhpCsFixer \Fixer \Import \OrderedImportsFixer::IMPORT_TYPE_CLASS ,
161
+ ]
162
+ ],
147
163
'ordered_interfaces ' => [
148
164
'direction ' => 'ascend ' ,
149
165
'order ' => 'alpha ' ,
150
166
],
151
- 'phpdoc_add_missing_param_annotation ' => true ,
167
+ 'phpdoc_add_missing_param_annotation ' => false ,
152
168
'phpdoc_align ' => true ,
153
169
'phpdoc_annotation_without_dot ' => true ,
154
170
'phpdoc_indent ' => true ,
@@ -160,6 +176,7 @@ return PhpCsFixer\Config::create()
160
176
'phpdoc_scalar ' => true ,
161
177
'phpdoc_separation ' => true ,
162
178
'phpdoc_single_line_var_spacing ' => true ,
179
+ 'phpdoc_summary ' => true ,
163
180
'phpdoc_to_comment ' => true ,
164
181
'phpdoc_trim ' => true ,
165
182
'phpdoc_trim_consecutive_blank_line_separation ' => true ,
0 commit comments