forked from a2lix/TranslationFormBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
41 lines (37 loc) · 1.26 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:risky' => true,
'@PHP71Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'general_phpdoc_annotation_remove' => ['param', 'return'],
'header_comment' => ['header' => $header],
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['vendor'])
->in(['src', 'tests'])
)
;