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.

OpenInModalMenuPageTrait::enqueueModalAssets()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 19
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\ConditionalOnEnvironment\Admin\Services\MenuPages;
6
7
/**
8
 * Menu page that opens in modal window
9
 */
10
trait OpenInModalMenuPageTrait
11
{
12
    /**
13
     * Enqueue the required assets
14
     */
15
    protected function enqueueModalAssets(): void
16
    {
17
        /**
18
         * Hide the menus
19
         */
20
        \wp_enqueue_style(
21
            'graphql-api-hide-admin-bar',
22
            \GRAPHQL_API_URL . 'assets/css/hide-admin-bar.css',
23
            array(),
24
            \GRAPHQL_API_VERSION
25
        );
26
        /**
27
         * Styles for content within the modal window
28
         */
29
        \wp_enqueue_style(
30
            'graphql-api-modal-window-content',
31
            \GRAPHQL_API_URL . 'assets/css/modal-window-content.css',
32
            array(),
33
            \GRAPHQL_API_VERSION
34
        );
35
    }
36
}
37