Completed
Push — master ( b4a6ad...e2bab1 )
by Andrii
13:50
created

CommitsController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHistory() 0 4 1
1
<?php
2
3
/*
4
 * Task runner, code generator and build tool for easier continuos integration
5
 *
6
 * @link      https://github.com/hiqdev/hidev
7
 * @package   hidev
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\controllers;
13
14
/**
15
 * Controller for reading and writing commits history to build CHANGELOG.md.
16
 */
17
class CommitsController extends FileController
18
{
19
    protected $_before = ['git']; /// TODO must be 'vcs' or detected
20
21
    protected $_file = '.hidev/commits.md';
22
23
    public $fileType = 'commits';
24
25
    public function getHistory()
26
    {
27
        return $this->getFile()->getHandler()->getHistory();
28
    }
29
}
30