Completed
Push — master ( 62c099...cf3855 )
by Andrii
05:38
created

MainMenu   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 22
ccs 0
cts 17
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A items() 0 17 1
1
<?php
2
3
/*
4
 * Hisite core package
5
 *
6
 * @link      https://github.com/hiqdev/hisite-core
7
 * @package   hisite-core
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\assetpackagist;
13
14
use Yii;
15
16
class MainMenu extends \hiqdev\menumanager\Menu
17
{
18
    protected $_addTo = 'main';
19
20
    public function items()
21
    {
22
        return [
23
            'about' => [
24
                'label' => Yii::t('hisite', 'About'),
25
                'url' => ['/site/about'],
26
            ],
27
            'contact' => [
28
                'label' => Yii::t('hisite', 'Contact'),
29
                'url' => ['/site/contact'],
30
            ],
31
            'github' => [
32
                'label' => 'GitHub',
33
                'url' => 'https://github.com/hiqdev/asset-packagist',
34
            ],
35
        ];
36
    }
37
}
38