forked from Badcow/DNS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
32 lines (26 loc) · 808 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
32 lines (26 loc) · 808 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
31
32
<?php
$header = <<<'EOF'
This file is part of Badcow DNS Library.
(c) Samuel Williams <sam@badcow.co>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/lib')
->in(__DIR__.'/tests')
->exclude(__DIR__.'/tests/Resources')
->exclude(__DIR__.'/tests/Parser/Resources')
;
$config = new PhpCsFixer\Config();
$config->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'header_comment' => ['header' => $header],
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'void_return' => true,
'declare_strict_types' => true,
])
->setFinder($finder)
;
return $config;