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 ( f14b80...cf5ad3 )
by Loick
8s
created

Config::getGitlabHosts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the composer-changelogs project.
5
 *
6
 * (c) Loïck Piera <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Pyrech\ComposerChangelogs\Config;
13
14
class Config
15
{
16
    /** @var string */
17
    private $commitAuto;
18
19
    /** @var string|null */
20
    private $commitBinFile;
21
22
    /** @var string */
23
    private $commitMessage;
24
25
    /** @var string[] */
26
    private $gitlabHosts;
27
28
    /**
29
     * @param string      $commitAuto
30
     * @param string|null $commitBinFile
31
     * @param string      $commitMessage
32
     * @param string[]    $gitlabHosts
33
     */
34 26
    public function __construct($commitAuto, $commitBinFile, $commitMessage, array $gitlabHosts)
35
    {
36 26
        $this->commitAuto = $commitAuto;
37 26
        $this->commitBinFile = $commitBinFile;
38 26
        $this->commitMessage = $commitMessage;
39 26
        $this->gitlabHosts = $gitlabHosts;
40 26
    }
41
42
    /**
43
     * @return string
44
     */
45 24
    public function getCommitAuto()
46
    {
47 24
        return $this->commitAuto;
48
    }
49
50
    /**
51
     * @return string|null
52
     */
53 20
    public function getCommitBinFile()
54
    {
55 20
        return $this->commitBinFile;
56
    }
57
58
    /**
59
     * @return string
60
     */
61 6
    public function getCommitMessage()
62
    {
63 6
        return $this->commitMessage;
64
    }
65
66
    /**
67
     * @return string[]
68
     */
69 26
    public function getGitlabHosts()
70
    {
71 26
        return $this->gitlabHosts;
72
    }
73
}
74