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   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 3
Metric Value
wmc 5
c 3
b 0
f 3
lcom 0
cbo 0
dl 0
loc 60
ccs 14
cts 14
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getCommitAuto() 0 4 1
A getCommitBinFile() 0 4 1
A getCommitMessage() 0 4 1
A getGitlabHosts() 0 4 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