File tree Expand file tree Collapse file tree 2 files changed +39
-26
lines changed Expand file tree Collapse file tree 2 files changed +39
-26
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of PHP CS Fixer / PHPUnit Constraint IsIdenticalString.
5+ *
6+ * (c) Dariusz Rumiński <dariusz.ruminski@gmail.com>
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 <dariusz.ruminski@gmail.com>
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+ ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments