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 = 9-12 lines in 2 locations

src/Resource/Async/Commit.php 1 location

@@ 10-18 (lines=9) @@
7
use WyriHaximus\Travis\Resource\Commit as BaseCommit;
8
use function React\Promise\resolve;
9
10
class Commit extends BaseCommit
11
{
12
    public function refresh(): PromiseInterface
13
    {
14
        return $this->getTransport()->request('builds/' . $this->id)->then(function ($json) {
15
            return resolve($this->getTransport()->getHydrator()->hydrate('Build', $json['build']));
16
        });
17
    }
18
}
19

src/Resource/Async/SSHKey.php 1 location

@@ 10-21 (lines=12) @@
7
use WyriHaximus\Travis\Resource\SSHKey as BaseSSHKey;
8
use function React\Promise\resolve;
9
10
class SSHKey extends BaseSSHKey
11
{
12
    /**
13
     * @return PromiseInterface
14
     */
15
    public function refresh() : PromiseInterface
16
    {
17
        return $this->getTransport()->request('settings/ssh_key/' . $this->id())->then(function ($json) {
18
            return resolve($this->getTransport()->getHydrator()->hydrate('SSHKey', $json['ssh_key']));
19
        });
20
    }
21
}
22