-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs
26 lines (24 loc) · 1.07 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests');
return PhpCsFixer\Config::create()
->setRiskyAllowed(false)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
'increment_style' => ['style' => 'post'],
'no_empty_comment' => false,
'no_extra_consecutive_blank_lines' => false,
'no_unneeded_control_parentheses' => false,
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_align' => ['tags' => ['param']],
'phpdoc_no_empty_return' => false,
'phpdoc_order' => true,
'pre_increment' => false,
'single_trait_insert_per_statement' => false,
'yoda_style' => false,
])
->setFinder($finder);