-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
35 lines (33 loc) · 1001 Bytes
/
.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
34
35
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->ignoreDotFiles(true)
->ignoreVCS(true)
->exclude([
'bin/',
'var/',
'vendor/',
'src/Migrations/'
])
->notPath('config/bootstrap.php')
->files()
->name('*.php');
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false],
'combine_consecutive_unsets' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'strict_comparison' => false,
'general_phpdoc_annotation_remove' => ['annotations' => ['author', 'package']],
'mb_str_functions' => true,
'no_superfluous_phpdoc_tags' => true,
'phpdoc_summary' => false,
]);