GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

AbstractMenu   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 17 1
A addMenuPagesBottom() 0 2 1
A addMenuPagesTop() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\ConditionalOnEnvironment\Admin\Services\Menus;
6
7
use GraphQLAPI\GraphQLAPI\ConditionalOnEnvironment\Admin\Services\MenuPages\AbstractMenuPage;
8
use PoP\ComponentModel\Facades\Instances\InstanceManagerFacade;
9
use PoP\Root\Services\AbstractAutomaticallyInstantiatedService;
10
11
/**
12
 * Admin menu class
13
 */
14
abstract class AbstractMenu extends AbstractAutomaticallyInstantiatedService
15
{
16
    abstract public static function getName(): string;
17
18
    /**
19
     * Initialize the endpoints
20
     *
21
     * @return void
22
     */
23
    public function initialize(): void
24
    {
25
        /**
26
         * Low priority to execute before adding the menus for the CPTs
27
         */
28
        \add_action(
29
            'admin_menu',
30
            [$this, 'addMenuPagesTop'],
31
            9
32
        );
33
        /**
34
         * High priority to execute after adding the menus for the CPTs
35
         */
36
        \add_action(
37
            'admin_menu',
38
            [$this, 'addMenuPagesBottom'],
39
            20
40
        );
41
    }
42
    public function addMenuPagesTop(): void
43
    {
44
        // Initially empty
45
    }
46
47
    public function addMenuPagesBottom(): void
48
    {
49
        // Initially empty
50
    }
51
}
52