App::context()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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;
15
16
use App\Configuration\Login;
17
use LIN3S\WPFoundation\Configuration\Menus\Menus;
18
use LIN3S\WPFoundation\Configuration\Theme\Theme;
19
use LIN3S\WPFoundation\Configuration\Translations\Translations;
20
21
class App extends Theme
22
{
23
    const MENU_MAIN = 'main_menu';
24
    const MENU_FOOTER = 'footer';
25
26
    public function classes() : void
27
    {
28
        new Login();
29
        new Menus([
30
            App::MENU_MAIN => Translations::trans('Main menu'),
31
            App::MENU_FOOTER => Translations::trans('Footer'),
32
        ]);
33
34
        new Fields();
35
        new PostTypes();
36
        new Taxonomies();
37
    }
38
39
    public function context(array $context) : array
40
    {
41
        return $context;
42
    }
43
44
    public function templates($templates)
45
    {
46
        return $templates;
47
    }
48
}
49