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 (#21)
by Cees-Jan
02:11
created

LogLine::log()   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
3
namespace WyriHaximus\Travis\Resource;
4
5
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
6
7
abstract class LogLine implements LogLineInterface
8
{
9
    use TransportAwareTrait;
10
11
    /**
12
     * @var int
13
     */
14
    protected $id;
15
16
    /**
17
     * @var string
18
     */
19
    // @codingStandardsIgnoreStart
20
    protected $_log;
21
    // @codingStandardsIgnoreEnd
22
23
    /**
24
     * @var int
25
     */
26
    protected $number;
27
28
    /**
29
     * @var bool
30
     */
31
    protected $final;
32
33
    /**
34
     * @return int
35
     */
36
    public function id() : int
37
    {
38
        return $this->id;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function log() : string
45
    {
46
        return $this->_log;
47
    }
48
49
    /**
50
     * @return int
51
     */
52
    public function number() : int
53
    {
54
        return $this->number;
55
    }
56
57
    /**
58
     * @return bool
59
     */
60
    public function final() : bool
61
    {
62
        return $this->final;
63
    }
64
65
    public function refresh()
66
    {
67
        throw new \Exception();
68
    }
69
}
70