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 ( deb6f2...9d4821 )
by Cees-Jan
02:47
created

Label::save()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
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\SaveCommand;
7
use ApiClients\Client\Github\Resource\Label as BaseLabel;
8
use React\Promise\PromiseInterface;
9
10
class Label extends BaseLabel
11
{
12
    public function refresh() : PromiseInterface
13
    {
14
        return $this->handleCommand(
15
            new RefreshCommand($this)
16
        );
17
    }
18
19
    public function save() : PromiseInterface
20
    {
21
        return $this->handleCommand(
22
            new SaveCommand(
23
                self::HYDRATE_CLASS,
24
                [
25
                    'name'  => $this->name(),
26
                    'color' => $this->color(),
27
                ],
28
                $this->url()
29
            )
30
        );
31
    }
32
}
33