Completed
Pull Request — master (#30)
by Beñat
29:25
created

Menus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

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-present 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
declare(strict_types=1);
13
14
namespace App\Configuration;
15
16
use LIN3S\WPFoundation\Configuration\Menus\Menus as BaseMenus;
17
use LIN3S\WPFoundation\Configuration\Translations\Translations;
18
19
/**
20
 * @author Gorka Laucirica <[email protected]>
21
 * @author Beñat Espiña <[email protected]>
22
 */
23
final class Menus extends BaseMenus
24
{
25
    private const MAIN = 'main-menu';
26
27
    public function menus() : void
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...
28
    {
29
        register_nav_menus([
30
            self::MAIN => Translations::trans('Main menu'),
31
        ]);
32
    }
33
}
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...
34