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.

Code Duplication    Length = 15-15 lines in 2 locations

src/Resource/Async/Repository/Branch.php 1 location

@@ 9-23 (lines=15) @@
6
use ApiClients\Client\Github\Resource\Repository\Branch as BaseBranch;
7
use React\Promise\PromiseInterface;
8
9
class Branch extends BaseBranch
10
{
11
    public function refresh(): Branch
12
    {
13
        throw new \Exception('TODO: create refresh method!');
14
    }
15
16
    public function detailedCommit(): PromiseInterface
17
    {
18
        return $this->handleCommand(new DetailedCommitCommand(
19
            \str_replace('/commits/' . $this->commit->sha(), '', \explode('/repos/', $this->commit->url())[1]),
20
            $this->commit->sha()
21
        ));
22
    }
23
}
24

src/Resource/Async/Tree.php 1 location

@@ 9-23 (lines=15) @@
6
use ApiClients\Client\Github\Resource\Tree as BaseTree;
7
use React\Promise\PromiseInterface;
8
9
class Tree extends BaseTree
10
{
11
    public function refresh(): Tree
12
    {
13
        throw new \Exception('TODO: create refresh method!');
14
    }
15
16
    public function detailedCommit(): PromiseInterface
17
    {
18
        return $this->handleCommand(new DetailedCommitCommand(
19
            \str_replace('/commits/' . $this->sha, '', \explode('/repos/', $this->url)[1]),
20
            $this->sha
21
        ));
22
    }
23
}
24