-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
44 lines (42 loc) · 1.37 KB
/
.php_cs
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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude([
'vendor',
'build',
])
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules(
[
// Enabled rules
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
],
'strict_param' => true,
'heredoc_to_nowdoc' => true,
'no_short_echo_tag' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_php4_constructor' => true,
'doctrine_annotation_indentation' => true,
'doctrine_annotation_braces' => [
'syntax' => 'with_braces',
],
// Disabled rules
'pre_increment' => false,
'doctrine_annotation_spaces' => false,
'no_multiline_whitespace_before_semicolons' => false,
]
)
->setRiskyAllowed(true)
->setIndent(' ')
->setLineEnding("\n")
->setFinder($finder)
;