forked from ExpressionEngine/ExpressionEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
29 lines (27 loc) · 1.03 KB
/
.php_cs.dist
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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('node_modules')
->exclude('vendor')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR12' => true,
'array_indentation' => true,
'binary_operator_spaces' => [ 'align_equals' => false, 'align_double_arrow' => false ],
'blank_line_before_statement' => true,
'cast_spaces' => true,
'concat_space' => [ 'spacing' => 'one' ],
'indentation_type' => true,
'linebreak_after_opening_tag' => true,
'lowercase_static_reference' => false,
'method_chaining_indentation' => true,
'no_blank_lines_after_phpdoc' => true,
'no_extra_consecutive_blank_lines' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_spaces_around_offset' => true,
'no_whitespace_before_comma_in_array' => true,
'normalize_index_brace' => true,
'trim_array_spaces' => true,
'visibility_required' => ['property', 'method'],
])
->setFinder($finder);