forked from volkszaehler/volkszaehler.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.php
32 lines (29 loc) · 819 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
27
28
29
30
31
32
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'strict_param' => false,
'array_syntax' => ['syntax' => 'short'],
'single_line_comment_style' => [
'comment_types' => [], // don't fix comment style
],
'braces' => [
'allow_single_line_closure' => true,
],
'header_comment' => [
'separate' => 'bottom',
'header' => <<<EOD
Copyright (c) 2011-2019 The volkszaehler.org project
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOD
],
])
->setIndent("\t")
->setFinder($finder)
;