Completed
Push — master ( 0f6984...10ccd9 )
by Andrii
12:35
created

SidebarMenu   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 40
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A items() 0 37 1
1
<?php
2
3
namespace advancedhosters\hipanel\menus;
4
5
use hiqdev\yii2\menus\Menu;
6
use Yii;
7
8
class SidebarMenu extends Menu
9
{
10
    public function items()
11
    {
12
        $isVisible = true;
13
14
        return [
15
            'cloud_servers' => [
16
                'label' => Yii::t('hipanel', 'Cloud Servers'),
17
                'url' => 'https://websa.advancedhosting.com/servers',
18
                'icon' => 'fa-cloud',
19
                'visible' => $isVisible,
20
            ],
21
            'cloud_storage' => [
22
                'label' => Yii::t('hipanel', 'Cloud Storage'),
23
                'url' => 'https://websa.advancedhosting.com/bucketList',
24
                'icon' => 'fa-cloud-upload',
25
                'visible' => $isVisible,
26
            ],
27
            'video_cdn' => [
28
                'label' => Yii::t('hipanel', 'Video CDN'),
29
                'url' => 'https://vcp.advancedhosting.com/dashboard',
30
                'icon' => 'fa-video-camera',
31
                'visible' => $isVisible,
32
            ],
33
            'anycast_cdn' => [
34
                'label' => Yii::t('hipanel', 'Anycast CDN'),
35
                'url' => 'https://websa.advancedhosting.com/cdn',
36
                'icon' => 'fa-globe',
37
                'visible' => $isVisible,
38
            ],
39
            'anycast_dns' => [
40
                'label' => Yii::t('hipanel', 'Anycast DNS'),
41
                'url' => 'https://websa.advancedhosting.com/anycastns',
42
                'icon' => 'fa-globe',
43
                'visible' => $isVisible,
44
            ],
45
        ];
46
    }
47
}
48