1
1
<?php
2
+
2
3
return PhpCsFixer \Config::create ()
3
- ->setUsingCache (true )
4
- ->setRiskyAllowed (true )
5
4
->setRules ([
6
- '@Symfony ' => true ,
7
- '@Symfony:risky ' => true ,
5
+ '@PSR2 ' => true ,
6
+ 'array_indentation ' => true ,
8
7
'array_syntax ' => ['syntax ' => 'short ' ],
8
+ 'combine_consecutive_unsets ' => true ,
9
+ 'method_separation ' => true ,
10
+ 'no_multiline_whitespace_before_semicolons ' => true ,
11
+ 'single_quote ' => true ,
12
+
13
+ 'binary_operator_spaces ' => [
14
+ 'align_double_arrow ' => false ,
15
+ 'align_equals ' => false ,
16
+ ],
17
+ // 'blank_line_after_opening_tag' => true,
18
+ // 'blank_line_before_return' => true,
19
+ 'braces ' => [
20
+ 'allow_single_line_closure ' => true ,
21
+ ],
22
+ // 'cast_spaces' => true,
23
+ // 'class_definition' => array('singleLine' => true),
9
24
'concat_space ' => ['spacing ' => 'one ' ],
10
- 'dir_constant ' => true ,
11
- 'ereg_to_preg ' => true ,
12
- 'general_phpdoc_annotation_remove ' => ['expectedException ' , 'expectedExceptionMessage ' , 'expectedExceptionMessageRegExp ' ],
13
- 'heredoc_to_nowdoc ' => true ,
14
- 'linebreak_after_opening_tag ' => true ,
15
- 'mb_str_functions ' => true ,
16
- 'modernize_types_casting ' => true ,
25
+ 'declare_equal_normalize ' => true ,
26
+ 'function_typehint_space ' => true ,
27
+ 'hash_to_slash_comment ' => true ,
28
+ 'include ' => true ,
29
+ 'lowercase_cast ' => true ,
30
+ // 'native_function_casing' => true,
31
+ // 'new_with_braces' => true,
32
+ // 'no_blank_lines_after_class_opening' => true,
33
+ // 'no_blank_lines_after_phpdoc' => true,
17
34
'no_empty_comment ' => true ,
35
+ 'no_empty_phpdoc ' => true ,
36
+ // 'no_empty_statement' => true,
18
37
'no_extra_consecutive_blank_lines ' => [
19
- 'break ' ,
20
- 'continue ' ,
38
+ 'curly_brace_block ' ,
21
39
'extra ' ,
22
- 'return ' ,
23
- 'use ' ,
24
40
'parenthesis_brace_block ' ,
25
41
'square_brace_block ' ,
26
- 'curly_brace_block ' ,
42
+ 'throw ' ,
43
+ 'use ' ,
27
44
],
28
- 'no_short_echo_tag ' => true ,
29
- 'no_useless_else ' => true ,
30
- 'no_useless_return ' => true ,
31
- 'ordered_imports ' => true ,
32
- 'phpdoc_add_missing_param_annotation ' => true ,
33
- 'phpdoc_align ' => false ,
34
- 'phpdoc_order ' => true ,
35
- 'phpdoc_summary ' => false ,
36
- 'php_unit_construct ' => true ,
37
- 'php_unit_strict ' => true ,
38
- 'psr4 ' => true ,
45
+ // 'no_leading_import_slash' => true,
46
+ // 'no_leading_namespace_whitespace' => true,
47
+ // 'no_mixed_echo_print' => array('use' => 'echo'),
48
+ 'no_multiline_whitespace_around_double_arrow ' => true ,
49
+ // 'no_short_bool_cast' => true,
50
+ // 'no_singleline_whitespace_before_semicolons' => true,
51
+ 'no_spaces_around_offset ' => true ,
52
+ // 'no_trailing_comma_in_list_call' => true,
53
+ // 'no_trailing_comma_in_singleline_array' => true,
54
+ // 'no_unneeded_control_parentheses' => true,
55
+ // 'no_unused_imports' => true,
56
+ 'no_whitespace_before_comma_in_array ' => true ,
57
+ 'no_whitespace_in_blank_line ' => true ,
58
+ // 'normalize_index_brace' => true,
59
+ 'object_operator_without_whitespace ' => true ,
60
+ // 'php_unit_fqcn_annotation' => true,
61
+ // 'phpdoc_align' => true,
62
+ // 'phpdoc_annotation_without_dot' => true,
63
+ // 'phpdoc_indent' => true,
64
+ // 'phpdoc_inline_tag' => true,
65
+ // 'phpdoc_no_access' => true,
66
+ // 'phpdoc_no_alias_tag' => true,
67
+ // 'phpdoc_no_empty_return' => true,
68
+ // 'phpdoc_no_package' => true,
69
+ // 'phpdoc_no_useless_inheritdoc' => true,
70
+ // 'phpdoc_return_self_reference' => true,
71
+ // 'phpdoc_scalar' => true,
72
+ // 'phpdoc_separation' => true,
73
+ // 'phpdoc_single_line_var_spacing' => true,
74
+ 'phpdoc_summary ' => true ,
75
+ // 'phpdoc_to_comment' => true,
76
+ // 'phpdoc_trim' => true,
77
+ // 'phpdoc_types' => true,
78
+ // 'phpdoc_var_without_name' => true,
79
+ // 'pre_increment' => true,
80
+ // 'return_type_declaration' => true,
81
+ // 'self_accessor' => true,
82
+ // 'short_scalar_cast' => true,
83
+ 'single_blank_line_before_namespace ' => true ,
84
+ // 'single_class_element_per_statement' => true,
85
+ // 'space_after_semicolon' => true,
86
+ // 'standardize_not_equals' => true,
87
+ 'ternary_operator_spaces ' => true ,
88
+ // 'trailing_comma_in_multiline_array' => true,
89
+ 'trim_array_spaces ' => true ,
90
+ 'unary_operator_spaces ' => true ,
91
+ 'whitespace_after_comma_in_array ' => true ,
39
92
])
40
- ->setFinder (
41
- PhpCsFixer \Finder::create ()
42
- ->exclude (['tests ' ])
43
- ->in (__DIR__ )
44
- )
45
- ;
93
+ //->setIndent("\t")
94
+ ->setLineEnding ("\n" );
0 commit comments