Faq   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
1
<?php
2
/**
3
 * DataServ Theme for hiqdev/yii2-thememanager
4
 *
5
 * @link      https://github.com/hiqdev/yii2-theme-dataserv
6
 * @package   yii2-theme-dataserv
7
 * @license   proprietary
8
 * @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\themes\dataserv\widgets;
12
13
use hiqdev\themes\dataserv\FaqAsset;
0 ignored issues
show
Bug introduced by
The type hiqdev\themes\dataserv\FaqAsset was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
use yii\base\Widget;
15
16
class Faq extends Widget
17
{
18
    public $items = [];
19
20
    public function run()
21
    {
22
        FaqAsset::register($this->view);
23
24
        return $this->render('faq/root', [
25
            'items' => $this->items,
26
        ]);
27
    }
28
}
29