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

Job::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 View Code Duplication
class Job implements JobInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
    use TransportAwareTrait;
12
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var int
20
     */
21
    protected $build_id;
22
23
    /**
24
     * @var int
25
     */
26
    protected $repository_id;
27
28
    /**
29
     * @var int
30
     */
31
    protected $commit_id;
32
33
    /**
34
     * @var int
35
     */
36
    protected $log_id;
37
38
    /**
39
     * @var string
40
     */
41
    protected $number;
42
43
    /**
44
     * @var array
45
     */
46
    protected $config = [];
47
48
    /**
49
     * @var string
50
     */
51
    protected $state;
52
53
    /**
54
     * @var DateTimeInterface
55
     */
56
    protected $started_at;
57
58
    /**
59
     * @var DateTimeInterface
60
     */
61
    protected $finished_at;
62
63
    /**
64
     * @var string
65
     */
66
    protected $queue;
67
68
    /**
69
     * @var bool
70
     */
71
    protected $allow_failure;
72
73
    /**
74
     * @var int[]
75
     */
76
    protected $annotation_ids;
77
78 2
    public function id() : int
79
    {
80 2
        return $this->id;
81
    }
82
83
    public function buildId() : int
84
    {
85
        return $this->build_id;
86
    }
87
88 2
    public function repositoryId() : int
89
    {
90 2
        return $this->repository_id;
91
    }
92
93 2
    public function commitId() : int
94
    {
95 2
        return $this->commit_id;
96
    }
97
98 2
    public function logId() : int
99
    {
100 2
        return $this->log_id;
101
    }
102
103 2
    public function number() : string
104
    {
105 2
        return $this->number;
106
    }
107
108 2
    public function config() : array
109
    {
110 2
        return $this->config;
111
    }
112
113 2
    public function state() : string
114
    {
115 2
        return $this->state;
116
    }
117
118 2
    public function startedAt() : DateTimeInterface
119
    {
120 2
        return $this->started_at;
121
    }
122
123 2
    public function finishedAt() : DateTimeInterface
124
    {
125 2
        return $this->finished_at;
126
    }
127
128 2
    public function queue() : string
129
    {
130 2
        return $this->queue;
131
    }
132
133 2
    public function allowFailure() : bool
134
    {
135 2
        return $this->allow_failure;
136
    }
137
138 2
    public function annotationIds() : array
139
    {
140 2
        return $this->annotation_ids;
141
    }
142
143
    public function refresh()
144
    {
145
        // TODO
146
    }
147
}
148