-
Notifications
You must be signed in to change notification settings - Fork 15
/
.php_cs
34 lines (31 loc) · 918 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude([
'vendor',
'runtime',
'tests/_output',
'tests/_support',
])
->in([__DIR__]);
$config = PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'phpdoc_order' => true,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'phpdoc_inline_tag' => false,
'pre_increment' => false,
'heredoc_to_nowdoc' => false,
'cast_spaces' => false,
'include' => false,
'phpdoc_no_package' => false,
'concat_space' => ['spacing' => 'one'],
'ordered_imports' => true,
'ordered_class_elements' => true,
'phpdoc_add_missing_param_annotation' => true,
'array_syntax' => ['syntax' => 'short'],
'visibility_required' => true,
'yoda_style' => false,
])
->setFinder($finder);
return $config;