forked from infection/infection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
35 lines (31 loc) · 819 Bytes
/
.php_cs.dist
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
33
34
35
<?php
$year = date('Y');
$header = <<<TXT
Copyright © 2017-$year Maks Rafalko
License: https://opensource.org/licenses/BSD-3-Clause New BSD License
TXT;
$finder = \PhpCsFixer\Finder::create()
->in('src')
->in('tests')
->exclude('Fixtures')
->in('app')
;
return \PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@PHP70Migration' => true,
'concat_space' => ['spacing' => 'one'],
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => $header,
'location' => 'after_open',
'separate' => 'bottom',
],
'is_null' => true,
'ordered_imports' => true,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'yoda_style' => false,
])
->setFinder($finder)
;