-
Notifications
You must be signed in to change notification settings - Fork 3
/
.php_cs.dist
33 lines (32 loc) · 1.02 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
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(
[
'@Symfony' => true,
'@PHP71Migration:risky' => true,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'concat_space' => ['spacing' => 'one'],
'no_multiline_whitespace_before_semicolons' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'array_syntax' => ['syntax' => 'short'],
'no_short_echo_tag' => true,
'pre_increment' => false,
'return_type_declaration' => ['space_before' => 'none'],
'void_return' => true,
'yoda_style' => [
'equal' => false,
'identical' => false,
],
]
)
->setFinder(
PhpCsFixer\Finder::create()
->in(['src', 'tests', 'lib'])
->exclude([])
->name('*.php')
);