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.

CommonConfiguration::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 4
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 7
rs 10
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaignApi\Configuration;
7
8
/**
9
 * Class CommonConfiguration
10
 */
11
class CommonConfiguration
12
{
13
14
    /**
15
     * @var string
16
     */
17
    private $baseUri;
18
19
    /**
20
     * @var string
21
     */
22
    private $token;
23
24
    /**
25
     * @return string
26
     */
27
    public function getBaseUri(): string
28
    {
29
        return $this->baseUri;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getToken(): string
36
    {
37
        return $this->token;
38
    }
39
40
    /**
41
     * @param string $baseUri
42
     * @param string $token
43
     *
44
     * @return CommonConfiguration
45
     */
46
    public static function build(string $baseUri, string $token): self
47
    {
48
        $configuration          = new self();
49
        $configuration->baseUri = $baseUri;
50
        $configuration->token   = $token;
51
52
        return $configuration;
53
    }
54
}
55