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

Commit::authorName()   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 4
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 Commit implements CommitInterface
10
{
11
    use TransportAwareTrait;
12
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     */
21
    protected $sha;
22
23
    /**
24
     * @var string
25
     */
26
    protected $branch;
27
28
    /**
29
     * @var string
30
     */
31
    protected $message;
32
33
    /**
34
     * @var DateTimeInterface
35
     */
36
    protected $committed_at;
37
38
    /**
39
     * @var string
40
     */
41
    protected $author_name;
42
43
    /**
44
     * @var string
45
     */
46
    protected $author_email;
47
48
    /**
49
     * @var string
50
     */
51
    protected $committer_name;
52
53
    /**
54
     * @var string
55
     */
56
    protected $committer_email;
57
58
    /**
59
     * @var string
60
     */
61
    protected $compare_url;
62
63
    /**
64
     * @return int
65
     */
66
    public function id() : int
67
    {
68
        return $this->id;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function sha() : string
75
    {
76
        return $this->sha;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function branch() : string
83
    {
84
        return $this->branch;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function message() : string
91
    {
92
        return $this->message;
93
    }
94
95
    /**
96
     * @return DateTimeInterface
97
     */
98
    public function committedAt() : DateTimeInterface
99
    {
100
        return $this->committed_at;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function authorName() : string
107
    {
108
        return $this->author_name;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function authorEmail() : string
115
    {
116
        return $this->author_email;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function committerName() : string
123
    {
124
        return $this->committer_name;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function committerEmail() : string
131
    {
132
        return $this->committer_email;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function compareUrl() : string
139
    {
140
        return $this->compare_url;
141
    }
142
}
143