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

BoxController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfiguration() 0 4 1
A actionMake() 0 4 1
A actionBuild() 0 4 1
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