forked from overblog/GraphQLBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
28 lines (26 loc) · 999 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
25
26
27
28
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->name('*.php')
->in([__DIR__.'/src', __DIR__.'/tests'])
;
return PhpCsFixer\Config::create()
->setRules(
[
'@Symfony' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'single_blank_line_before_namespace' => true,
'ordered_imports' => true,
'concat_space' => ['spacing' => 'none'],
'phpdoc_no_alias_tag' => ['type' => 'var'],
'no_mixed_echo_print' => ['use' => 'echo'],
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
'general_phpdoc_annotation_remove' => ['author', 'category', 'copyright', 'created', 'license', 'package', 'since', 'subpackage', 'version'],
'native_function_invocation' => true,
'fully_qualified_strict_types' => true,
]
)
->setFinder($finder)
->setUsingCache(true)
;