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

OwnVersionController::actionMake()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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