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

UpdateController::actionMake()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
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
 * Update goal.
16
 */
17
class UpdateController extends CommonController
18
{
19
    public function actionMake()
20
    {
21
        $this->makeUpdate();
22
        $this->module->runRequest('');
23
    }
24
25
    public function makeUpdate()
26
    {
27
        exec('cd .hidev;composer update --prefer-source');
28
    }
29
}
30