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.
Completed
Push — master ( d245d8...82e8c7 )
by Leonardo
10:28
created

GraphiQLWithExplorerBlockTrait::getBlockDirURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\Blocks\Overrides;
6
7
/**
8
 * GraphiQL with Explorer block
9
 */
10
trait GraphiQLWithExplorerBlockTrait
11
{
12
 /**
13
     * Override the location of the script
14
     *
15
     * @return string
16
     */
17
    protected function getBlockDirURL(): string
18
    {
19
        return $this->getPluginURL() . '/blocks/graphiql-with-explorer/';
0 ignored issues
show
Bug introduced by
It seems like getPluginURL() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
        return $this->/** @scrutinizer ignore-call */ getPluginURL() . '/blocks/graphiql-with-explorer/';
Loading history...
20
    }
21
}
22