-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.php
50 lines (45 loc) · 1.37 KB
/
.php_cs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* This file is part of the Active Collab Utils project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
$header = <<<EOF
This file is part of the Active Collab Utils project.
(c) A51 doo <info@activecollab.com>. All rights reserved.
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
return (new Symfony\CS\Config\Config('psr2'))->fixers([
'header_comment',
'array_element_no_space_before_comma',
'array_element_white_space_after_comma',
'double_arrow_multiline_whitespaces',
'hash_to_slash_comment',
'include',
'join_function',
'multiline_array_trailing_comma',
'namespace_no_leading_whitespace',
'no_blank_lines_after_class_opening ',
'no_empty_lines_after_phpdocs',
'phpdoc_scalar',
'phpdoc_short_description',
'self_accessor',
'single_array_no_trailing_comma',
'single_blank_line_before_namespace',
'spaces_after_semicolon',
'spaces_before_semicolon',
'spaces_cast',
'standardize_not_equal',
'ternary_spaces',
'trim_array_spaces',
'unused_use',
'whitespacy_lines',
'ordered_use',
'short_array_syntax',
'phpdoc_params',
'-phpdoc_separation',
'-phpdoc_no_package',
'-print_to_echo',
'-concat_without_spaces',
'-empty_return',
])->finder((new Symfony\CS\Finder\DefaultFinder())->in([__DIR__ . '/src', __DIR__ . '/test']));