Skip to content

Commit 2b9e26a

Browse files
author
plumthedev
committed
Merge branch 'release/1.2.0'
2 parents 1a0324c + 1f99e8f commit 2b9e26a

File tree

8 files changed

+745
-649
lines changed

8 files changed

+745
-649
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;

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "plumthedev/yii2-php-cs-fixer-config",
3+
"version": "1.2.0",
34
"description": "Yii2 PHP coding standards configuration",
45
"type": "library",
56
"require": {
67
"friendsofphp/php-cs-fixer": "^2.16",
7-
"yiisoft/yii2": "~2.0.0"
8+
"yiisoft/yii2": "~2.0.0",
9+
"yiisoft/yii2-dev": "^2.0",
10+
"ext-json": "*"
811
},
912
"require-dev": {
1013
"phpunit/phpunit": "4.3.*"

0 commit comments

Comments
 (0)