Completed
Push — master ( ddfa3a...5be5f6 )
by Andrii
05:14
created

MainMenu   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 20
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
 * Asset Packagist
5
 *
6
 * @link      https://github.com/hiqdev/asset-packagist
7
 * @package   asset-packagist
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\assetpackagist\menus;
13
14
use Yii;
15
16
/**
17
 * Main menu.
18
 *
19
 * @author Andrii Vasyliev <[email protected]>
20
 */
21
class MainMenu extends \hiqdev\menumanager\Menu
22
{
23
    public function items()
24
    {
25
        return [
26
            'about' => [
27
                'label' => Yii::t('hisite', 'About'),
28
                'url' => ['/site/about'],
29
            ],
30
            'contact' => [
31
                'label' => Yii::t('hisite', 'Contact'),
32
                'url' => ['/site/contact'],
33
            ],
34
            'github' => [
35
                'label' => 'GitHub',
36
                'url' => 'https://github.com/hiqdev/asset-packagist',
37
            ],
38
        ];
39
    }
40
}
41