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.

User   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 6

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 6
dl 0
loc 37
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A refresh() 0 6 1
A repository() 0 6 1
A repositories() 0 6 1
A organizations() 0 6 1
A events() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Async;
4
5
use ApiClients\Client\Github\CommandBus\Command\RefreshCommand;
6
use ApiClients\Client\Github\CommandBus\Command\User\EventsCommand;
7
use ApiClients\Client\Github\CommandBus\Command\User\OrganizationsCommand;
8
use ApiClients\Client\Github\CommandBus\Command\User\RepositoriesCommand;
9
use ApiClients\Client\Github\CommandBus\Command\User\RepositoryCommand;
10
use ApiClients\Client\Github\Resource\User as BaseUser;
11
use function ApiClients\Tools\Rx\unwrapObservableFromPromise;
12
use React\Promise\PromiseInterface;
13
use Rx\ObservableInterface;
14
15
class User extends BaseUser
16
{
17
    public function refresh(): PromiseInterface
18
    {
19
        return $this->handleCommand(
20
            new RefreshCommand($this)
21
        );
22
    }
23
24
    public function repository(string $repository): PromiseInterface
25
    {
26
        return $this->handleCommand(
27
            new RepositoryCommand($this->login(), $repository)
28
        );
29
    }
30
31
    public function repositories(): ObservableInterface
32
    {
33
        return unwrapObservableFromPromise($this->handleCommand(
34
            new RepositoriesCommand($this->login())
35
        ));
36
    }
37
38
    public function organizations(): ObservableInterface
39
    {
40
        return unwrapObservableFromPromise($this->handleCommand(
41
            new OrganizationsCommand($this->login())
42
        ));
43
    }
44
45
    public function events(): ObservableInterface
46
    {
47
        return unwrapObservableFromPromise($this->handleCommand(
48
            new EventsCommand($this->login())
49
        ));
50
    }
51
}
52