Completed
Push — master ( 27ccb2...cf0928 )
by Andrii
02:46
created

OwnVersionController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionMake() 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
 * Goal for HiDev own version output.
16
 */
17
class OwnVersionController extends VersionController
18
{
19
    protected $_file = '@hidev/../version';
20
21
    public $version;
22
    public $date;
23
    public $time;
24
    public $zone;
25
    public $hash;
26
27
    public function actionMake($version = null)
28
    {
29
        echo "HiDev version $this->version $this->date $this->time $this->hash\n";
30
    }
31
}
32