Completed
Push — master ( d7794a...32d811 )
by Andrii
15:02
created

BoxJsonController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 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\console;
13
14
use hidev\helpers\Helper;
15
16
/**
17
 * `box.json` config file.
18
 */
19
class BoxJsonController extends \hidev\controllers\FileController
20
{
21
    public function actionIndex()
22
    {
23
        $this->take('box.json')->save();
24
    }
25
}
26