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 ( c221d0...e8acb2 )
by Cees-Jan
10s
created

Commit::status()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Async\Repository;
4
5
use ApiClients\Client\Github\CommandBus\Command\RefreshCommand;
6
use ApiClients\Client\Github\CommandBus\Command\Repository\Commit\StatusCommand;
7
use ApiClients\Client\Github\CommandBus\Command\Repository\Commit\StatusesCommand;
8
use ApiClients\Client\Github\Resource\Repository\Commit as BaseCommit;
9
use React\Promise\PromiseInterface;
10
use Rx\ObservableInterface;
11
use function ApiClients\Tools\Rx\unwrapObservableFromPromise;
12
13
class Commit extends BaseCommit
14
{
15
    public function refresh() : PromiseInterface
16
    {
17
        return $this->handleCommand(
18
            new RefreshCommand($this)
19
        );
20
    }
21
22
    public function status(): PromiseInterface
23
    {
24
        return $this->handleCommand(
25
            new StatusCommand($this)
26
        );
27
    }
28
29
    public function statuses(): ObservableInterface
30
    {
31
        return unwrapObservableFromPromise($this->handleCommand(
32
            new StatusesCommand($this)
33
        ));
34
    }
35
}
36