Completed
Push — master ( add877...db5f0d )
by Andrii
02:57
created

UserMenu::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * AdminLte Theme for hiqdev/yii2-thememanager
5
 *
6
 * @link      https://github.com/hiqdev/yii2-theme-adminlte
7
 * @package   yii2-theme-adminlte
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\thememanager\widgets;
13
14
class UserMenu extends \yii\base\Widget
15
{
16
    public $options;
17
18
    public $items;
19
20
    public function run() {
21
        return $this->render('UserMenu', [
22
            'header' => $this->items['header']['label'],
23
            'body' => $this->items['body']['label'],
24
        ]);
25
    }
26
}
27