Completed
Push — master ( 4593f6...7b4260 )
by Andrii
36:14
created

UpdateGoal   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionMake() 0 5 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-2015, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\goals;
13
14
/**
15
 * Update goal.
16
 */
17
class UpdateGoal extends DefaultGoal
18
{
19
    public function actionMake()
20
    {
21
        exec('cd .hidev;composer update --prefer-source');
22
        $this->module->runRequest('');
23
    }
24
}
25