-
Notifications
You must be signed in to change notification settings - Fork 13
/
.php_cs
28 lines (27 loc) · 1.04 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
<?php
return \PhpCsFixer\Config::create()
->setFinder(
\PhpCsFixer\Finder::create()
->in([
'src',
'tests',
])
->exclude([
'React',
])
)
->setRules([
'@Symfony' => true,
// Override @Symfony rules
'pre_increment' => false,
'blank_line_before_statement' => ['statements' => ['return']],
'phpdoc_align' => ['tags' => ['param', 'throws']],
'phpdoc_annotation_without_dot' => false,
// Custom rules
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'ordered_imports' => true,
'phpdoc_order' => true,
'array_syntax' => ['syntax' => 'short'],
'increment_style' => null,
'yoda_style' => ['equal' => false, 'identical' => false],
]);