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 ( a5712b...663867 )
by Cees-Jan
6s
created

Repository::refresh()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\Travis\Resource;
5
6
use DateTimeInterface;
7
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
8
9
abstract class Repository implements RepositoryInterface
10
{
11
    use TransportAwareTrait;
12
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     */
21
    protected $slug;
22
23
    /**
24
     * @var string
25
     */
26
    protected $description;
27
28
    /**
29
     * @var int
30
     */
31
    protected $last_build_id;
32
33
    /**
34
     * @var int
35
     */
36
    protected $last_build_number;
37
38
    /**
39
     * @var string
40
     */
41
    protected $last_build_state;
42
43
    /**
44
     * @var int
45
     */
46
    protected $last_build_duration;
47
48
    /**
49
     * @var DateTimeInterface
50
     */
51
    protected $last_build_started_at;
52
53
    /**
54
     * @var DateTimeInterface
55
     */
56
    protected $last_build_finished_at;
57
58
    /**
59
     * @var string
60
     */
61
    protected $github_language;
62
63 2
    public function id() : int
64
    {
65 2
        return $this->id;
66
    }
67
68 2
    public function slug() : string
69
    {
70 2
        return $this->slug;
71
    }
72
73 2
    public function description() : string
74
    {
75 2
        return $this->description;
76
    }
77
78 2
    public function lastBuildId() : int
79
    {
80 2
        return $this->last_build_id;
81
    }
82
83 2
    public function lastBuildNumber() : int
84
    {
85 2
        return $this->last_build_number;
86
    }
87
88 2
    public function lastBuildState() : string
89
    {
90 2
        return $this->last_build_state;
91
    }
92
93 2
    public function lastBuildDuration() : int
94
    {
95 2
        return $this->last_build_duration;
96
    }
97
98 2
    public function lastBuildStartedAt() : DateTimeInterface
99
    {
100 2
        return $this->last_build_started_at;
101
    }
102
103 2
    public function lastBuildFinishedAt() : DateTimeInterface
104
    {
105 2
        return $this->last_build_finished_at;
106
    }
107
108 2
    public function githubLanguage() : string
109
    {
110 2
        return $this->github_language;
111
    }
112
113
    public function refresh()
114
    {
115
        // TODO
116
    }
117
}
118