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
Pull Request — master (#19)
by Cees-Jan
04:35
created

Repository::githubLanguage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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 2
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
    public function id() : int
64
    {
65
        return $this->id;
66
    }
67
68
    public function slug() : string
69
    {
70
        return $this->slug;
71
    }
72
73
    public function description() : string
74
    {
75
        return $this->description;
76
    }
77
78
    public function lastBuildId() : int
79
    {
80
        return $this->last_build_id;
81
    }
82
83
    public function lastBuildNumber() : int
84
    {
85
        return $this->last_build_number;
86
    }
87
88
    public function lastBuildState() : string
89
    {
90
        return $this->last_build_state;
91
    }
92
93
    public function lastBuildDuration() : int
94
    {
95
        return $this->last_build_duration;
96
    }
97
98
    public function lastBuildStartedAt() : DateTimeInterface
99
    {
100
        return $this->last_build_started_at;
101
    }
102
103
    public function lastBuildFinishedAt() : DateTimeInterface
104
    {
105
        return $this->last_build_finished_at;
106
    }
107
108
    public function githubLanguage() : string
109
    {
110
        return $this->github_language;
111
    }
112
}
113