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

MainMenu::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
ccs 0
cts 17
cp 0
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
crap 2
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