-
Notifications
You must be signed in to change notification settings - Fork 6
/
.php_cs.php
26 lines (25 loc) · 862 Bytes
/
.php_cs.php
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
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'ordered_imports' => true,
'no_unused_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'align_multiline_comment' => true,
'array_indentation' => true,
'no_superfluous_elseif' => true,
'not_operator_with_successor_space' => false,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types_order' => true,
'yoda_style' => false,
'concat_space' => ['spacing' => 'one'],
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['./src/vendor'])
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests/phpunit')
);