Completed
Push — master ( 69f712...a96098 )
by Andrii
02:39
created

ReleaseNotesController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 4
dl 0
loc 10
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 7 1
1
<?php
2
3
/*
4
 * Changelog keeper
5
 *
6
 * @link      https://github.com/hiqdev/chkipper
7
 * @package   chkipper
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\chkipper\console;
13
14
use hiqdev\chkipper\history\MarkdownParser;
15
use hiqdev\chkipper\changelog\NotesRenderer;
16
use Yii;
17
18
/**
19
 * Relese Notes Controller.
20
 *
21
 * @author Andrii Vasyliev <[email protected]>
22
 */
23
class ReleaseNotesController extends \yii\console\Controller
24
{
25
    public function actionIndex()
26
    {
27
        $parser = new MarkdownParser();
28
        $history = $parser->parsePath(Yii::$app->config->historyFile);
29
        $renderer = new NotesRenderer();
30
        echo $renderer->render($history);
31
    }
32
}
33