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.
Passed
Push — master ( b38aca...ed3c2e )
by Leonardo
06:08 queued 57s
created

OpenInModalTriggerMenuPageTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A enqueueModalTriggerAssets() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\Admin\MenuPages;
6
7
/**
8
 * Menu pages that trigger opening a modal
9
 */
10
trait OpenInModalTriggerMenuPageTrait
11
{
12
    /**
13
     * Enqueue the required assets and initialize the localized scripts
14
     *
15
     * @return void
16
     */
17
    protected function enqueueModalTriggerAssets(): void
18
    {
19
        /**
20
         * Hack to open the modal thickbox iframe with the documentation
21
         */
22
        \wp_enqueue_style(
23
            'thickbox'
24
        );
25
        \wp_enqueue_script(
26
            'plugin-install'
27
        );
28
    }
29
}
30