-
Notifications
You must be signed in to change notification settings - Fork 10
/
.php_cs.dist
45 lines (39 loc) · 1.38 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
42
43
44
45
<?php
/*
* This file is part of the OverblogGraphQLPhpGenerator package.
*
* (c) Overblog <http://github.com/overblog/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$header = <<<EOF
This file is part of the OverblogGraphQLPhpGenerator package.
(c) Overblog <http://github.com/overblog/>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->name('*.php')
->in([__DIR__.'/src', __DIR__.'/tests'])
;
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setFinder($finder)
->setRules([
'@PSR2' => 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,
'header_comment' => ['header' => $header],
])
;