-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
26 lines (23 loc) · 685 Bytes
/
.php_cs
File metadata and controls
26 lines (23 loc) · 685 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
<?php
$header = <<<'EOF'
This file is part of questocat/version-comparator package.
(c) questocat <zhengchaopu@gmail.com>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude(['vendor', 'data', 'coverage-html'])
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@PSR1' => false,
'header_comment' => [
'header' => $header
],
'ordered_class_elements' => true,
'strict_param' => true,
])
->setUsingCache(false)
->setFinder($finder);