Completed
Push — master ( c842a6...0ae0f9 )
by Andrii
15:39
created

ScrutinizerYamlController::actionLoad()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 9.4286
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
/*
4
 * Scrutinizer plugin for HiDev
5
 *
6
 * @link      https://github.com/hiqdev/hidev-scrutinizer
7
 * @package   hidev-scrutinizer
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\scrutinizer\controllers;
13
14
/**
15
 * Goal for .scrutinizer.yml config file.
16
 * For the moment PHP projects only.
17
 */
18
class ScrutinizerYamlController extends \hidev\controllers\FileController
19
{
20
    protected $_file = '.scrutinizer.yml';
21
22
    /**
23
     * Adds defaults.
24
     */
25
    public function actionLoad()
26
    {
27
        $this->setItems([
28
            'tools' => [
29
                'php_code_coverage' => [
30
                    'enabled' => true,
31
                ],
32
                'external_code_coverage' => [
33
                    'timeout' => 600,
34
                ],
35
            ],
36
        ]);
37
        parent::actionLoad();
38
    }
39
}
40