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 ( cf39f6...a305e6 )
by Leonardo
03:52
created

AbstractDocsMenuPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 31
dl 0
loc 59
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A print() 0 8 1
A enqueueAssets() 0 37 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\Admin\MenuPages;
6
7
use GraphQLAPI\GraphQLAPI\Admin\MenuPages\AbstractMenuPage;
8
9
/**
10
 * Docs menu page
11
 */
12
abstract class AbstractDocsMenuPage extends AbstractMenuPage
13
{
14
    use GraphQLAPIMenuPageTrait;
15
16
    public function print(): void
17
    {
18
        ?>
19
        <div
20
            class="modal-window-content-wrapper"
21
        >
22
            <?php echo $this->getContentToPrint() ?>
23
        </div>
24
        <?php
25
    }
26
27
    abstract protected function getContentToPrint(): string;
28
29
    /**
30
     * Enqueue the required assets and initialize the localized scripts
31
     *
32
     * @return void
33
     */
34
    protected function enqueueAssets(): void
35
    {
36
        parent::enqueueAssets();
37
38
        /**
39
         * Hide the menus
40
         */
41
        \wp_enqueue_style(
42
            'graphql-api-hide-admin-bar',
43
            \GRAPHQL_API_URL . 'assets/css/hide-admin-bar.css',
44
            array(),
45
            \GRAPHQL_API_VERSION
46
        );
47
        /**
48
         * Styles for content within the modal window
49
         */
50
        \wp_enqueue_style(
51
            'graphql-api-modal-window-content',
52
            \GRAPHQL_API_URL . 'assets/css/modal-window-content.css',
53
            array(),
54
            \GRAPHQL_API_VERSION
55
        );
56
57
        /**
58
         * Add tabs to the documentation
59
         */
60
        \wp_enqueue_style(
61
            'graphql-api-tabpanel',
62
            \GRAPHQL_API_URL . 'assets/css/tabpanel.css',
63
            array(),
64
            \GRAPHQL_API_VERSION
65
        );
66
        \wp_enqueue_script(
67
            'graphql-api-tabpanel',
68
            \GRAPHQL_API_URL . 'assets/js/tabpanel.js',
69
            array('jquery'),
70
            \GRAPHQL_API_VERSION
71
        );
72
    }
73
}
74