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 ( 490bf5...2ea53f )
by Cees-Jan
06:11
created

Commit   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 5
dl 0
loc 30
rs 10
c 0
b 0
f 0
ccs 0
cts 9
cp 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A refresh() 0 6 1
A status() 0 6 1
A statuses() 0 6 1
A createStatus() 0 6 1
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\CreateStatusCommand;
7
use ApiClients\Client\Github\CommandBus\Command\Repository\Commit\StatusCommand;
8
use ApiClients\Client\Github\CommandBus\Command\Repository\Commit\StatusesCommand;
9
use ApiClients\Client\Github\Resource\Repository\Commit as BaseCommit;
10
use React\Promise\PromiseInterface;
11
use Rx\ObservableInterface;
12
use function ApiClients\Tools\Rx\unwrapObservableFromPromise;
13
14
class Commit extends BaseCommit
15
{
16
    public function refresh(): PromiseInterface
17
    {
18
        return $this->handleCommand(
19
            new RefreshCommand($this)
20
        );
21
    }
22
23
    public function status(): PromiseInterface
24
    {
25
        return $this->handleCommand(
26
            new StatusCommand($this)
27
        );
28
    }
29
30
    public function statuses(): ObservableInterface
31
    {
32
        return unwrapObservableFromPromise($this->handleCommand(
33
            new StatusesCommand($this)
34
        ));
35
    }
36
37
    public function createStatus(string $state, ?string $targetUrl = null, ?string $description = null, ?string $context = null): PromiseInterface
38
    {
39
        return $this->handleCommand(
40
            new CreateStatusCommand($this, $state, $targetUrl, $description, $context)
41
        );
42
    }
43
}
44