-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
53 lines (51 loc) · 1.41 KB
/
.php-cs-fixer.dist.php
File metadata and controls
53 lines (51 loc) · 1.41 KB
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
51
52
53
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->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',
],
'class_attributes_separation' => [
'elements' => [
'method' => 'one',
],
],
'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' => [
'sort_algorithm' => 'alpha',
],
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
],
'single_quote' => true,
'trailing_comma_in_multiline' => true,
'whitespace_after_comma_in_array' => true,
])
->setFinder($finder)
;