Completed
Push — master ( 1d3ce3...94c808 )
by Klochok
02:15
created

Faq::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 8
c 1
b 0
f 0
ccs 0
cts 0
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hiqdev\themes\dataserv\widgets;
4
5
use hiqdev\themes\dataserv\FaqAsset;
6
use yii\base\Widget;
7
8
class Faq extends Widget
9
{
10
    public $items = [];
11
12
    public function run()
13
    {
14
        FaqAsset::register($this->view);
15
16
        return $this->render('faq/root', [
17
            'items' => $this->items,
18
        ]);
19
    }
20
}
21