generated from mimmi20/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.php
50 lines (42 loc) · 1.28 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
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* This file is part of the mimmi20/contact package.
*
* Copyright (c) 2022-2024, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
$header = <<<'EOF'
This file is part of the mimmi20/contact package.
Copyright (c) 2022-2024, Thomas Mueller <mimmi20@live.de>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->append([__DIR__ . '/rector.php'])
->append([__FILE__]);
$rules = require 'vendor/mimmi20/coding-standard/src/php-cs-fixer.config.php';
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules(
array_merge(
$rules,
[
'header_comment' => [
'header' => $header,
'comment_type' => 'PHPDoc',
'location' => 'after_open',
'separate' => 'bottom',
],
],
),
)
->setUsingCache(true)
->setFinder($finder);