From 4038eb065bd7d3c9b9c03e634586d0011859bc51 Mon Sep 17 00:00:00 2001 From: meyerbaptiste Date: Wed, 17 May 2017 14:29:42 +0200 Subject: [PATCH] Add the header_comment rule to the PHP-CS-Fixer's configuration --- .php_cs.dist | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.php_cs.dist b/.php_cs.dist index b561201b28f..cb721540df2 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -1,5 +1,14 @@ + +For the full copyright and license information, please view the LICENSE +file that was distributed with this source code. +HEADER; + $finder = PhpCsFixer\Finder::create() ->in(__DIR__) ->exclude('tests/Fixtures/app/cache') @@ -17,6 +26,10 @@ return PhpCsFixer\Config::create() 'allow_single_line_closure' => true, ], 'declare_strict_types' => true, + 'header_comment' => [ + 'header' => $header, + 'location' => 'after_open', + ], 'modernize_types_casting' => true, // 'native_function_invocation' => true, 'no_extra_consecutive_blank_lines' => [