-
Notifications
You must be signed in to change notification settings - Fork 14
/
.php-cs-fixer.php
37 lines (31 loc) · 1.01 KB
/
.php-cs-fixer.php
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
<?php
declare(strict_types=1);
$header = <<<'EOF'
This file is part of the Bitcoin-DCA package.
(c) Jorijn Schrijvershof <[email protected]>
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()
->in(__DIR__)
->exclude('vendor')
->exclude('var');
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules(
[
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP81Migration' => true,
'@PHP80Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']],
'header_comment' => ['header' => $header],
'array_syntax' => ['syntax' => 'short'],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline'
],
]
)
->setFinder($finder);