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 (#33)
by Cees-Jan
60:15 queued 50:27
created

Settings::buildsOnlyWithTravisYml()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\Travis\Resource;
5
6
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
7
8
abstract class Settings implements SettingsInterface
9
{
10
    use TransportAwareTrait;
11
12
    /**
13
     * @var bool
14
     */
15
    protected $builds_only_with_travis_yml;
16
17
    /**
18
     * @var bool
19
     */
20
    protected $build_pushes;
21
22
    /**
23
     * @var bool
24
     */
25
    protected $build_pull_requests;
26
27
    /**
28
     * @var int
29
     */
30
    protected $maximum_number_of_builds;
31
32
    /**
33
     * @return bool
34
     */
35
    public function buildsOnlyWithTravisYml() : bool
36
    {
37
        return $this->builds_only_with_travis_yml;
38
    }
39
40
    /**
41
     * @return bool
42
     */
43
    public function buildPushes() : bool
44
    {
45
        return $this->build_pushes;
46
    }
47
48
    /**
49
     * @return bool
50
     */
51
    public function buildPullRequests() : bool
52
    {
53
        return $this->build_pull_requests;
54
    }
55
56
    /**
57
     * @return int
58
     */
59
    public function maximumNumberOfBuilds() : int
60
    {
61
        return $this->maximum_number_of_builds;
62
    }
63
}
64