Skip to content

Commit 47dafba

Browse files
authored
chore: update Fixer config (#28)
1 parent 94920b6 commit 47dafba

File tree

2 files changed

+39
-26
lines changed

2 files changed

+39
-26
lines changed

Diff for: .php-cs-fixer.dist.php

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
/*
4+
* This file is part of PHP CS Fixer / PHPUnit Constraint IsIdenticalString.
5+
*
6+
* (c) Dariusz Rumiński <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
use PhpCsFixer\Config;
13+
use PhpCsFixer\Finder;
14+
15+
$header = <<<'EOF'
16+
This file is part of PHP CS Fixer / PHPUnit Constraint IsIdenticalString.
17+
18+
(c) Dariusz Rumiński <[email protected]>
19+
20+
This source file is subject to the MIT license that is bundled
21+
with this source code in the file LICENSE.
22+
EOF;
23+
24+
$finder = Finder::create()
25+
->exclude('tests/Fixtures')
26+
->in(__DIR__)
27+
->append([__FILE__])
28+
;
29+
30+
return (new Config())
31+
->setRiskyAllowed(true)
32+
->setRules([
33+
'@PhpCsFixer' => true,
34+
'@PhpCsFixer:risky' => true,
35+
'@PHPUnit60Migration:risky' => true,
36+
'header_comment' => ['header' => $header],
37+
])
38+
->setFinder($finder)
39+
;

Diff for: .php-cs-fixer.php

-26
This file was deleted.

0 commit comments

Comments
 (0)