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

ScrutinizerYamlController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionLoad() 0 14 1
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