Completed
Push — master ( 22637e...da3731 )
by Andrii
15:10
created

DumpGoal   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
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-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\goals;
13
14
use yii\helpers\ArrayHelper;
15
use Symfony\Component\Yaml\Yaml;
16
17
/**
18
 * Dump goal.
19
 */
20
class DumpGoal extends DefaultGoal
21
{
22
    public function actionMake()
23
    {
24
        $data = $this->getConfig()->getItems();
25
        print Yaml::dump(ArrayHelper::toArray($data), 4);
26
    }
27
}
28