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 ( aac044...cc3c72 )
by Leonardo
14:28
created

EnqueueReactMenuPageTrait::enqueueReactAssets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
nc 1
nop 1
dl 0
loc 15
rs 9.8666
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
trait EnqueueReactMenuPageTrait
8
{
9
10
    /**
11
     * Enqueue the required assets and initialize the localized scripts
12
     *
13
     * @return void
14
     */
15
    protected function enqueueReactAssets(bool $addInFooter = true): void
16
    {
17
        \wp_enqueue_script(
18
            'graphql-api-react',
19
            \GRAPHQL_API_URL . 'assets/js/vendors/react.min.js',
20
            array(),
21
            \GRAPHQL_API_VERSION,
22
            $addInFooter
23
        );
24
        \wp_enqueue_script(
25
            'graphql-api-react-dom',
26
            \GRAPHQL_API_URL . 'assets/js/vendors/react-dom.min.js',
27
            array('graphql-api-react'),
28
            \GRAPHQL_API_VERSION,
29
            $addInFooter
30
        );
31
    }
32
}
33