Skip to content

Commit 42ded0e

Browse files
author
plumthedev
committed
update cs-fixer config
1 parent c13adca commit 42ded0e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.php_cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<?php
2-
$projectHeader = <<<'HEADER'
2+
$composerJsonPath = __DIR__ . '/composer.json';
3+
$composerJson = file_get_contents($composerJsonPath);
4+
$composerProject = json_decode($composerJson);
5+
$currentYear = date('Y');
6+
7+
$projectHeader = <<<HEADER
38
Yii2 PHP CS Fixer Config
49
510
@author Kacper Pruszynski (plumthedev)
611
@link https://github.com/plumthedev/yii2-php-cs-fixer-config
7-
@copyright Copyright (c) 2019 plumthedev
12+
@copyright Copyright (c) 2019 - {$currentYear} plumthedev
813
@license https://github.com/plumthedev/yii2-php-cs-fixer-config/blob/master/LICENSE
9-
@version 1.0.1
14+
@version {$composerProject->version}
1015
HEADER;
1116

1217
use plumthedev\PhpCsFixer\Config;

0 commit comments

Comments
 (0)