-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy path.php_cs
More file actions
30 lines (24 loc) · 742 Bytes
/
.php_cs
File metadata and controls
30 lines (24 loc) · 742 Bytes
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
<?php
$header = <<<EOF
This file is part of the phpems/phpems.
(c) oiuv <i@oiuv.cn>
项目维护:oiuv(QQ:7300637) | 定制服务:火眼(QQ:278768688)
This source file is subject to the MIT license that is bundled.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude(['vendor', 'data', 'files'])
->in(__DIR__)
;
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'header_comment' => ['header' => $header],
'binary_operator_spaces' => ['operators' => ['=>' => 'align']],
'trailing_comma_in_multiline_array' => true,
// 'no_useless_else' => true,
// 'no_useless_return' => true,
])
->setFinder($finder)
;
return $config;