-
Notifications
You must be signed in to change notification settings - Fork 222
/
.php-cs-fixer.dist.php
42 lines (40 loc) · 1.39 KB
/
.php-cs-fixer.dist.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
33
34
35
36
37
38
39
40
41
42
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('Annotation')
->name('*.php')
->in([__DIR__.'/src', __DIR__.'/tests'])
;
return (new PhpCsFixer\Config())
->setRules(
[
'@Symfony' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'general_phpdoc_annotation_remove' => [
'annotations' => [
'author',
'category',
'copyright',
'created',
'license',
'package',
'since',
'subpackage',
'version',
],
],
'fully_qualified_strict_types' => true,
'single_line_throw' => false,
'phpdoc_to_comment' => false,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'global_namespace_import' => ['import_functions' => true, 'import_classes' => true, 'import_constants' => true],
'phpdoc_summary' => false,
'single_line_comment_style' => false,
'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']],
'no_mixed_echo_print' => ['use' => 'echo'],
]
)
->setFinder($finder)
->setUsingCache(true)
;