forked from overblog/GraphQLBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
31 lines (29 loc) · 1.18 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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('Annotation')
->name('*.php')
->in([__DIR__.'/src', __DIR__.'/tests'])
;
return PhpCsFixer\Config::create()
->setRules(
[
'@Symfony' => true,
'@PHP74Migration' => true,
'@PHP74Migration:risky' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'general_phpdoc_annotation_remove' => ['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,
'hash_to_slash_comment' => false,
'single_line_comment_style' => false,
'phpdoc_no_alias_tag' => ['type' => 'var'],
'no_mixed_echo_print' => ['use' => 'echo'],
]
)
->setFinder($finder)
->setUsingCache(true)
;