-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
47 lines (45 loc) · 1.22 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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__);
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP83Migration' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
'array_syntax' => ['syntax' => 'short'],
'blank_lines_before_namespace' => [
'max_line_breaks' => 1,
'min_line_breaks' => 1,
],
'braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'echo_tag_syntax' => [
'format' => 'short',
],
'fopen_flags' => false,
'heredoc_to_nowdoc' => true,
'list_syntax' => ['syntax' => 'short'],
'multiline_comment_opening_closing' => true,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'new_line_for_chained_calls',
],
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_useless_sprintf' => true,
'return_assignment' => true,
'string_implicit_backslashes' => true,
'string_line_ending' => true,
'void_return' => true,
])
->setFinder($finder)
->setIndent("\t")
->setLineEnding("\n");