Completed
Push — master ( 618f38...023c78 )
by Andrii
02:53
created

BoxController::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 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * Box plugin for HiDev
5
 *
6
 * @link      https://github.com/hiqdev/hidev-box
7
 * @package   hidev-box
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\box\controllers;
13
14
/**
15
 * Goal for Box.
16
 */
17
class BoxController extends \hidev\controllers\CommonController
18
{
19
    public $configFile = 'box.json';
20
21
    public function getConfiguration()
22
    {
23
        return $this->config->get($this->configFile);
24
    }
25
26
    public function actionMake()
27
    {
28
        return $this->actionBuild();
29
    }
30
31
    public function actionBuild()
32
    {
33
        return $this->passthru('box', ['build']);
34
    }
35
}
36