|
4 | 4 | ->exclude('tests/stubs') // exclude the tests-stubs, but not the tests for this module
|
5 | 5 | ->exclude('docs') // exclude the docs
|
6 | 6 | ->notPath('/libs\/.*\//') // regex, exclude only dirs in libs, not the files
|
7 |
| - ->in(__DIR__); |
| 7 | + ->in(__DIR__ . "/../"); |
8 | 8 |
|
9 | 9 | return (new PhpCsFixer\Config())->setRules([
|
10 | 10 | 'align_multiline_comment' => [
|
|
21 | 21 | 'blank_line_after_namespace' => true,
|
22 | 22 | 'blank_line_after_opening_tag' => true,
|
23 | 23 | 'blank_line_before_statement' => false,
|
24 |
| - "single_space_around_construct" => true, |
25 |
| - //control_structure_braces, |
26 |
| - //control_structure_continuation_position |
27 |
| - "declare_parentheses" => true, |
28 |
| - "no_multiple_statements_per_line" => true, |
| 24 | + "single_space_around_construct" => true, |
| 25 | + //control_structure_braces, |
| 26 | + //control_structure_continuation_position |
| 27 | + "declare_parentheses" => true, |
| 28 | + "no_multiple_statements_per_line" => true, |
29 | 29 | "braces_position" => [
|
30 |
| - 'anonymous_functions_opening_brace' =>'next_line_unless_newline_at_signature_end' |
31 |
| - ], |
| 30 | + 'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end' |
| 31 | + ], |
32 | 32 | "statement_indentation" => true,
|
33 | 33 | "no_extra_blank_lines" => true,
|
34 | 34 | 'cast_spaces' => true,
|
|
37 | 37 | //class_keyword_remove
|
38 | 38 | //combine_consecutive_issets
|
39 | 39 | //combine_consecutive_unsets
|
40 |
| - //combine_nested_dirname |
| 40 | + //combine_nested_dirname |
41 | 41 | //comment_to_phpdoc
|
42 | 42 | //compact_nullable_typehint
|
43 | 43 | 'concat_space' => [
|
|
50 | 50 | //dir_constant
|
51 | 51 | 'elseif' => true,
|
52 | 52 | 'encoding' => true,
|
53 |
| - //ereg_to_preg |
54 |
| - //error_suppression |
| 53 | + //ereg_to_preg |
| 54 | + //error_suppression |
55 | 55 | //escape_implicit_backslashes
|
56 | 56 | //explicit_indirect_variable
|
57 | 57 | //explicit_string_variable
|
|
72 | 72 | //is_null
|
73 | 73 | 'line_ending' => true,
|
74 | 74 | 'linebreak_after_opening_tag' => true,
|
75 |
| - //list_syntax |
| 75 | + //list_syntax |
76 | 76 | 'logical_operators' => true,
|
77 | 77 | 'lowercase_cast' => true,
|
78 | 78 | 'constant_case' => ['case' => 'lower'],
|
|
113 | 113 | //no_null_property_initialization
|
114 | 114 | //no_short_bool_cast
|
115 | 115 | 'echo_tag_syntax' => ['format' => 'long'],
|
116 |
| - 'no_singleline_whitespace_before_semicolons'=> true, |
| 116 | + 'no_singleline_whitespace_before_semicolons' => true, |
117 | 117 | 'no_spaces_after_function_name' => true,
|
118 | 118 | 'no_spaces_around_offset' => false,
|
119 | 119 | 'spaces_inside_parentheses' => true,
|
|
133 | 133 | 'no_whitespace_before_comma_in_array' => true,
|
134 | 134 | 'no_whitespace_in_blank_line' => true,
|
135 | 135 | //non_printable_character
|
136 |
| - 'normalize_index_brace'=> true, |
| 136 | + 'normalize_index_brace' => true, |
137 | 137 | 'not_operator_with_space' => false,
|
138 | 138 | 'not_operator_with_successor_space' => false,
|
139 | 139 | 'object_operator_without_whitespace' => true,
|
|
146 | 146 | 'protected_to_private' => false,
|
147 | 147 | //psr0
|
148 | 148 | //psr4
|
149 |
| - //random_api_migration |
| 149 | + //random_api_migration |
150 | 150 | //return_assignment
|
151 | 151 | 'return_type_declaration' => true,
|
152 | 152 | 'self_accessor' => true,
|
|
165 | 165 | 'space_after_semicolon' => true,
|
166 | 166 | //standardize_increment
|
167 | 167 | 'standardize_not_equals' => true,
|
168 |
| - //static_lambda |
| 168 | + //static_lambda |
169 | 169 | //strict_comparison
|
170 | 170 | //strict_param
|
171 | 171 | //string_line_ending
|
|
0 commit comments