minor improvement to tabs style
[openemr.git] / .php_cs
blob6199d3cf189b9124a8eda73a5ef9940de2bccf7f
1 <?php
3 use Symfony\CS\Config\Config;
4 use Symfony\CS\Finder\DefaultFinder;
5 use Symfony\CS\FixerInterface;
7 // Files and directories that will be scanned
8 $finder = DefaultFinder::create()
9     ->exclude(['vendor','Documentation','gacl','images','tests'])
10     ->in(__DIR__);
12 // CS issues to fix
13 $config = Config::create()
14     ->level(FixerInterface::NONE_LEVEL)
15     ->fixers(
16         [
17             //PSR-0
18             // 'psr0',
19             //PSR-1
20             'encoding',
21             // '-short_tag',
22             //PSR-2
23             'braces',
24             'class_definition',
25             // '-elseif',
26             'eof_ending',
27             // '-function_call_space',
28             // '-function_declaration',
29             'indentation',
30             // '-line_after_namespace',
31             'linefeed',
32             'lowercase_constants',
33             'lowercase_keywords',
34             // '-method_argument_space',
35             // '-multiple_use',
36             'no_trailing_whitespace_in_comment',
37             'parenthesis',
38             // '-php_closing_tag',
39             'single_line_after_imports',
40             // '-switch_case_semicolon_to_colon',
41             // '-switch_case_space',
42             'trailing_spaces',
43             // '-visibility',
44             //SYMFONY
45             // 'array_element_no_space_before_comma',
46             // 'array_element_white_space_after_comma',
47             // 'blankline_after_open_tag',
48             // 'concat_without_spaces',
49             // 'double_arrow_multiline_whitespaces',
50             // 'duplicate_semicolon',
51             // 'empty_return',
52             // 'extra_empty_lines',
53             // 'function_typehint_space',
54             // 'include',
55             // 'join_function',
56             // 'list_commas',
57             // 'multiline_array_trailing_comma',
58             // 'namespace_no_leading_whitespace',
59             // 'new_with_braces',
60             // 'no_blank_lines_after_class_opening',
61             // 'no_empty_lines_after_phpdocs',
62             // 'object_operator',
63             // 'operators_spaces',
64             // 'phpdoc_indent',
65             // 'phpdoc_inline_tag',
66             // 'phpdoc_no_access',
67             // 'phpdoc_no_empty_return',
68             // 'phpdoc_no_package',
69             // 'phpdoc_params',
70             // 'phpdoc_scalar',
71             // 'phpdoc_separation',
72             // 'phpdoc_short_description',
73             // 'phpdoc_to_comment',
74             // 'phpdoc_trim',
75             // 'phpdoc_type_to_var',
76             // 'phpdoc_types',
77             // 'phpdoc_var_without_name',
78             // 'pre_increment',
79             // 'print_to_echo',
80             // 'remove_leading_slash_use',
81             // 'remove_lines_between_uses',
82             // 'return',
83             // 'self_accessor',
84             // 'short_bool_cast',
85             // 'single_array_no_trailing_comma',
86             // 'single_blank_line_before_namespace',
87             // 'single_quote',
88             // 'spaces_before_semicolon',
89             // 'spaces_cast',
90             // 'standardize_not_equal',
91             // 'ternary_spaces',
92             // 'trim_array_spaces',
93             // 'unalign_double_arrow',
94             // 'unalign_equals',
95             // 'unary_operators_spaces',
96             // 'unneeded_control_parentheses',
97             // 'unused_use',
98             'whitespacy_lines',
99             //CONTRIB
100             // 'align_double_arrow',
101             // 'align_equals',
102             // 'concat_with_spaces',
103             // 'echo_to_print',
104             // 'ereg_to_preg',
105             // 'header_comment',
106             // 'logical_not_operators_with_spaces',
107             // 'logical_not_operators_with_successor_space',
108             // 'long_array_syntax',
109             // 'multiline_spaces_before_semicolon',
110             // 'newline_after_open_tag',
111             // 'no_blank_lines_before_namespace',
112             // 'ordered_use',
113             // 'php4_constructor',
114             // 'php_unit_construct',
115             // 'php_unit_strict',
116             // 'phpdoc_order',
117             // 'phpdoc_var_to_type',
118             // 'short_array_syntax',
119             // 'short_echo_tag',
120             // 'strict',
121             // 'strict_param'
122         ]
123     )
124     ->setUsingLinter(true)
125     ->setUsingCache(true)
126     ->finder($finder);
128 return $config;