Skip to content

Commit ec40329

Browse files
authored
Merge pull request #1125 from meyerbaptiste/add_header_php_cs_fixer
Add the header_comment rule to the PHP-CS-Fixer's configuration
2 parents 69050d3 + 4038eb0 commit ec40329

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.php_cs.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
$header = <<<'HEADER'
4+
This file is part of the API Platform project.
5+
6+
(c) Kévin Dunglas <[email protected]>
7+
8+
For the full copyright and license information, please view the LICENSE
9+
file that was distributed with this source code.
10+
HEADER;
11+
312
$finder = PhpCsFixer\Finder::create()
413
->in(__DIR__)
514
->exclude('tests/Fixtures/app/cache')
@@ -17,6 +26,10 @@ return PhpCsFixer\Config::create()
1726
'allow_single_line_closure' => true,
1827
],
1928
'declare_strict_types' => true,
29+
'header_comment' => [
30+
'header' => $header,
31+
'location' => 'after_open',
32+
],
2033
'modernize_types_casting' => true,
2134
// 'native_function_invocation' => true,
2235
'no_extra_consecutive_blank_lines' => [

0 commit comments

Comments
 (0)