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 (#26)
by
unknown
05:57
created

Vindi::getApiBase()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Vindi;
4
5
class Vindi
6
{
7
    /**
8
     * This Package SDK Version.
9
     * @var string
10
     */
11
    public static $sdkVersion = '1.0.10';
12
13
    /**
14
     * The base URL for the Vindi API.
15
     * @var string
16
     */
17
    public static $apiBase = 'https://sandbox-app.vindi.com.br/api/v1/';
18
19
    /**
20
     * The Environment variable name for API Key.
21
     * @var string
22
     */
23
    public static $apiKeyEnvVar = 'VINDI_API_KEY';
24
    public static $baseApiEnvVar = 'VINDI_API_BASE';
25
26
    /**
27
     * Get Vindi API Key from environment.
28
     * @return string
29
     */
30 430
    public function getApiKey()
31
    {
32 430
        return getenv(static::$apiKeyEnvVar);
33
    }
34 428
    public static function getApiBase()
35
    {
36 428
        return getenv(static::$baseApiEnvVar);
37
    }
38
    /**
39
     * Get CA Bundle Path.
40
     * @return string
41
     */
42 430
    public function getCertPath()
43
    {
44 430
        return realpath(sprintf('%s/%s', dirname(__FILE__), '/../data/ssl/ca-bundle.crt'));
45
    }
46
}
47