-
Notifications
You must be signed in to change notification settings - Fork 10
/
.php_cs.dist
50 lines (46 loc) · 1.07 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__)
;
return Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'array_indentation'=>true,
'binary_operator_spaces'=>[
'operators'=>[
'='=>'single_space',
'=>'=>'single_space',
]
],
'blank_line_after_opening_tag'=>true,
'blank_line_before_statement'=>true,
'cast_spaces'=>[
'space'=>'single',
],
'concat_space'=>[
'spacing'=>'one',
],
'method_chaining_indentation'=>true,
'no_extra_blank_lines'=>true,
'no_singleline_whitespace_before_semicolons'=>true,
'no_unused_imports'=>true,
'no_whitespace_in_blank_line'=>true,
'ordered_class_elements'=>true,
'ordered_imports'=>[
'imports_order'=>[
'class',
'function',
'const',
],
],
'single_quote'=>true,
'trailing_comma_in_multiline_array'=>true,
'whitespace_after_comma_in_array'=>true,
])
->setFinder($finder)
;