Skip to content

Commit

Permalink
Enhancement: Enable header_comment fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 28, 2017
1 parent 62801ec commit 7a0e871
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

$year = date('Y');

$header = <<<TXT
Copyright (c) 2013-$year OpenCFP
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
@see https://github.com/opencfp/opencfp
TXT;

$finder = PhpCsFixer\Finder::create()
->exclude('migrations')
->in(__DIR__);
Expand All @@ -24,6 +35,10 @@ return PhpCsFixer\Config::create()
],
'function_to_constant' => true,
'function_typehint_space' => true,
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => $header,
],
'increment_style' => true,
'is_null' => [
'use_yoda_style' => false,
Expand Down

0 comments on commit 7a0e871

Please sign in to comment.