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 ( a6816c...6bbc5d )
by Carsten
07:55 queued 12s
created

ItemCodeAbstract::isEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace Germania\Nav\ItemCodes;
3
4
5
abstract class ItemCodeAbstract implements ItemCodeInterface
6
{
7
8
    /**
9
     * @var string
10
     */
11
    public $code;
12
13
    /**
14
     * @var string
15
     */
16
    public $name;
17
18
    /**
19
     * @var boolean
20
     */
21
    public $enabled;
22
23
    /**
24
     * @var boolean
25
     */
26
    public $display;
27
28
29
30
    /**
31
     * @return string
32
     */
33 8
    public function getCode()
34
    {
35 8
        return $this->code;
36
    }
37
38
    /**
39
     * @return string
40
     */
41 4
    public function getName()
42
    {
43 4
        return $this->name;
44
    }
45
46
47
    /**
48
     * @return boolean
49
     */
50 4
    public function isEnabled()
51
    {
52 4
        return $this->enabled > 0;
53
    }
54
55
    /**
56
     * @return boolean
57
     */
58 4
    public function isDisplayable()
59
    {
60 4
        return $this->display > 0;
61
    }
62
63
}
64