Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
plumthedev committed Dec 14, 2019
2 parents 1a0324c + 1f99e8f commit 2b9e26a
Show file tree
Hide file tree
Showing 8 changed files with 745 additions and 649 deletions.
11 changes: 8 additions & 3 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<?php
$projectHeader = <<<'HEADER'
$composerJsonPath = __DIR__ . '/composer.json';
$composerJson = file_get_contents($composerJsonPath);
$composerProject = json_decode($composerJson);
$currentYear = date('Y');

$projectHeader = <<<HEADER
Yii2 PHP CS Fixer Config
@author Kacper Pruszynski (plumthedev)
@link https://github.com/plumthedev/yii2-php-cs-fixer-config
@copyright Copyright (c) 2019 plumthedev
@copyright Copyright (c) 2019 - {$currentYear} plumthedev
@license https://github.com/plumthedev/yii2-php-cs-fixer-config/blob/master/LICENSE
@version 1.0.1
@version {$composerProject->version}
HEADER;

use plumthedev\PhpCsFixer\Config;
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "plumthedev/yii2-php-cs-fixer-config",
"version": "1.2.0",
"description": "Yii2 PHP coding standards configuration",
"type": "library",
"require": {
"friendsofphp/php-cs-fixer": "^2.16",
"yiisoft/yii2": "~2.0.0"
"yiisoft/yii2": "~2.0.0",
"yiisoft/yii2-dev": "^2.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "4.3.*"
Expand Down
Loading

0 comments on commit 2b9e26a

Please sign in to comment.