-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.php-cs-fixer.dist.php
68 lines (66 loc) · 1.9 KB
/
.php-cs-fixer.dist.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
$finder = (new PhpCsFixer\Finder())
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
return (new PhpCsFixer\Config())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
'phpdoc_param_order' => true,
'cast_spaces' => ['space' => 'none'],
'trailing_comma_in_multiline' => true,
'blank_line_after_opening_tag' => false,
'array_indentation' => true,
'void_return' => true,
'trim_array_spaces' => true,
'yoda_style' => ['identical' => false],
'phpdoc_add_missing_param_annotation' => true,
'no_empty_comment' => true,
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'allow_unused_params' => false,
'allow_hidden_params' => false,
],
'multiline_whitespace_before_semicolons' => [
'strategy' => 'new_line_for_chained_calls'
],
'phpdoc_order_by_value' => [
'annotations' => [
"covers",
"dataProvider",
"author",
"internal",
"property",
"throws",
"uses"
]
],
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => [
'class',
'const',
'function',
],
],
'class_attributes_separation' => [
'elements' => [
'const' => 'none',
'method' => 'one',
'property' => 'none',
'trait_import' => 'one',
],
],
'blank_line_before_statement' => [
'statements' => [
'break',
'continue',
'return',
'throw',
'try',
],
],
]);