forked from overblog/GraphQLBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
24 lines (22 loc) · 873 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('Annotation')
->name('*.php')
->in([__DIR__.'/src', __DIR__.'/tests'])
;
return PhpCsFixer\Config::create()
->setRules(
[
'@Symfony' => 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],
]
)
->setFinder($finder)
->setUsingCache(true)
;