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.

Project::history()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\AppVeyor\Resource\Async;
4
5
use ApiClients\Client\AppVeyor\CommandBus\Command\Project\HistoryCommand;
6
use ApiClients\Client\AppVeyor\CommandBus\Command\Project\LatestBuildCommand;
7
use ApiClients\Client\AppVeyor\Resource\Project as BaseProject;
8
use React\Promise\PromiseInterface;
9
use Rx\Observable;
10
use function ApiClients\Tools\Rx\unwrapObservableFromPromise;
11
12
class Project extends BaseProject
13
{
14
    public function refresh(): Project
15
    {
16
        throw new \Exception('TODO: create refresh method!');
17
    }
18
19
    public function lastestBuild(): PromiseInterface
20
    {
21
        return $this->handleCommand(new LatestBuildCommand($this->accountName, $this->slug));
22
    }
23
24
    public function history(): Observable
25
    {
26
        return unwrapObservableFromPromise($this->handleCommand(new HistoryCommand($this->accountName, $this->slug)));
27
    }
28
}
29