forked from tighten/jigsaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
23 lines (22 loc) · 860 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
<?php
$finder = PhpCsFixer\Finder::create()
->name('*.php')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests');
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'align_multiline_comment' => ['comment_type' => 'all_multiline'],
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'phpdoc_annotation_without_dot' => true,
'phpdoc_order' => true,
'trailing_comma_in_multiline_array' => true,
'yoda_style' => false,
])
->setFinder($finder);