Completed
Push — master ( eae015...8c1881 )
by Andrii
13:55
created

NavbarMenu   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
B items() 0 38 1
1
<?php
2
3
namespace hipanel\menus;
4
5
use hipanel\widgets\UserMenu;
6
use hiqdev\menumanager\Menu;
7
use hiqdev\yii2\cart\widgets\PanelTopCart;
8
use hiqdev\yii2\language\widgets\LanguageMenu;
9
use hiqdev\yii2\reminder\widgets\ReminderTop;
10
11
class NavbarMenu extends Menu
12
{
13
    public function items()
14
    {
15
        return [
16
            [
17
                'label' => LanguageMenu::widget(),
18
                'encode' => false,
19
                'options' => [
20
                    'class' => 'dropdown language-menu',
21
                ],
22
            ],
23
            [
24
                'label' => ReminderTop::widget(),
25
                'encode' => false,
26
                'options' => [
27
                    'id' => 'reminders',
28
                    'class' => 'dropdown notifications-menu reminders',
29
                ],
30
            ],
31
            [
32
                'label' => PanelTopCart::widget(),
33
                'encode' => false,
34
                'options' => [
35
                    'class' => 'dropdown notifications-menu'
36
                ],
37
            ],
38
            [
39
                'label' => UserMenu::widget(),
40
                'encode' => false,
41
                'options' => [
42
                    'class' => 'dropdown user user-menu'
43
                ]
44
            ],
45
            [
46
                'label' => '<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>',
47
                'encode' => false,
48
            ]
49
        ];
50
    }
51
}
52