-
Notifications
You must be signed in to change notification settings - Fork 7
/
.php_cs.php
32 lines (31 loc) · 1.14 KB
/
.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
27
28
29
30
31
32
<?php
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@PSR12' => true,
'ordered_imports' => true,
'no_unused_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'align_multiline_comment' => true,
'array_indentation' => true,
'no_empty_phpdoc' => true,
'no_superfluous_elseif' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types_order' => true,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
# -------------------------------------------------
'not_operator_with_successor_space' => false,
'no_superfluous_phpdoc_tags' => false, # this would always remove required mixed annotations
'yoda_style' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['./src/vendor'])
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests/phpunit')
);