-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
41 lines (35 loc) · 1.17 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
<?php
$header = <<<'HEADER'
This file is part of the common-bundle package.
(c) Yakamara Media GmbH & Co. KG
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
HEADER;
$finder = PhpCsFixer\Finder::create()
->exclude('Resources')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => false,
'braces' => ['allow_single_line_closure' => false],
'combine_consecutive_unsets' => true,
'declare_strict_types' => true,
'header_comment' => ['header' => $header],
'heredoc_to_nowdoc' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'phpdoc_types_order' => ['sort_algorithm' => 'none'],
])
->setFinder($finder)
;