forked from a2lix/TranslationFormBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
41 lines (37 loc) · 1.25 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 TranslationFormBundle package.
(c) David ALLIX <http://a2lix.fr>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
HEADER;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@DoctrineAnnotation' => true,
'@PHP70Migration' => true,
'@PHP70Migration:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PHP73Migration' => true,
'@PHPUnit75Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'date_time_immutable' => true,
'header_comment' => ['header' => $header],
'general_phpdoc_annotation_remove' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => true,
'php_unit_strict' => false,
'php_unit_test_class_requires_covers' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['vendor'])
->in(['src', 'tests'])
)
;