Completed
Push — master ( d21dd2...a23d9a )
by Beñat
8s
created

Menus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A menus() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the WordPress Standard project.
5
 *
6
 * Copyright (c) 2015-2016 LIN3S <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace AppTheme\Configuration;
13
14
use LIN3S\WPFoundation\Configuration\Menus\Menus as BaseMenus;
15
use LIN3S\WPFoundation\Configuration\Translations\Translations;
16
17
/**
18
 * Final Menu class. With menus method are registered the different menus.
19
 *
20
 * @author Gorka Laucirica <[email protected]>
21
 * @author Beñat Espiña <[email protected]>
22
 */
23
final class Menus extends BaseMenus
24
{
25
    const MENU_HEADER = 'header-menu';
26
27
    /**
28
     * @inheritdoc}
29
     */
30
    public function menus()
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
31
    {
32
        register_nav_menus([
33
            self::MENU_HEADER => Translations::trans('Header menu')
34
        ]);
35
    }
36
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
37