Passed
Push — master ( 4c32d9...9de6d5 )
by Alexander
20:47
created

YiisoftConfig::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 11
nc 1
nop 0
dl 0
loc 15
rs 9.9
c 0
b 0
f 0
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\cs;
9
10
/**
11
 * Basic rules used by Yii 2 official packages.
12
 *
13
 * @author Robert Korulczyk <[email protected]>
14
 * @since 2.0.0
15
 */
16
final class YiisoftConfig extends YiiConfig
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function __construct()
22
    {
23
        parent::__construct('yiisoft-cs-config');
24
25
        $header = <<<'HEADER'
26
@link http://www.yiiframework.com/
27
@copyright Copyright (c) 2008 Yii Software LLC
28
@license http://www.yiiframework.com/license/
29
HEADER;
30
31
        $this->mergeRules([
32
            'header_comment' => [
33
                'header' => $header,
34
                'commentType' => 'PHPDoc',
35
                'separate' => 'bottom',
36
            ],
37
        ]);
38
    }
39
}
40