-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
49 lines (40 loc) · 1.4 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$header = <<<EOF
This file is part of the ADFC Radschulwegplan Backend package.
<https://github.com/ADFC-Hamburg/adfc-radschulwegplan-backend>
(c) 2018 by James Twellmeyer <[email protected]>
(c) 2018 by Sven Anders <[email protected]>
Released under the GPL 3.0
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
Please also visit our (german) webpage about the project:
<https://hamburg.adfc.de/verkehr/themen-a-z/kinder/schulwegplanung/>
EOF;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'long'],
'combine_consecutive_unsets' => true,
'header_comment' => ['header' => $header],
'linebreak_after_opening_tag' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'phpdoc_no_empty_return' => false,
])
->setUsingCache(true)
->setCacheFile(__DIR__.'/.php_cs.cache/file')
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('app')
->exclude('bin')
->exclude('var')
->exclude('web')
->exclude('vendor')
)
;