Completed
Push — master ( a2db3f...116d3d )
by Andrii
03:06 queued 50s
created

BumpController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actionPerform() 0 5 1
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
 * Controller for version bump.
16
 */
17
class BumpController extends AbstractController
18
{
19
    protected $_before = ['commits'];
20
21
    public $version;
22
23
    public function actionPerform($version = null)
24
    {
25
        $this->version = $version;
26
        return $this->runActions(['before', 'make', 'after']);
27
    }
28
29
    public function actionMake()
30
    {
31
        return $this->runRequests(['commits/bump', 'CHANGELOG.md']);
0 ignored issues
show
Bug Compatibility introduced by
The expression $this->runRequests(array...ump', 'CHANGELOG.md')); of type integer|hidev\controllers\Response adds the type hidev\controllers\Response to the return on line 31 which is incompatible with the return type of the parent method hidev\controllers\AbstractController::actionMake of type null|integer.
Loading history...
32
    }
33
}
34