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.

BearerTokenCredential::getAccessKeySecret()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace AlibabaCloud\Client\Credentials;
4
5
use AlibabaCloud\Client\Filter\CredentialFilter;
6
use AlibabaCloud\Client\Exception\ClientException;
7
8
/**
9
 * Class BearerTokenCredential
10
 *
11
 * @package   AlibabaCloud\Client\Credentials
12
 */
13
class BearerTokenCredential implements CredentialsInterface
14
{
15
16
    /**
17
     * @var string
18
     */
19
    private $bearerToken;
20
21
    /**
22
     * Class constructor.
23
     *
24
     * @param string $bearerToken
25
     *
26
     * @throws ClientException
27
     */
28 23
    public function __construct($bearerToken)
29
    {
30 23
        CredentialFilter::bearerToken($bearerToken);
31
32 19
        $this->bearerToken = $bearerToken;
33 19
    }
34
35
    /**
36
     * @return string
37
     */
38 14
    public function getBearerToken()
39
    {
40 14
        return $this->bearerToken;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 13
    public function getAccessKeyId()
47
    {
48 13
        return '';
49
    }
50
51
    /**
52
     * @return string
53
     */
54 13
    public function getAccessKeySecret()
55
    {
56 13
        return '';
57
    }
58
59
    /**
60
     * @return string
61
     */
62 4
    public function __toString()
63
    {
64 4
        return "bearerToken#$this->bearerToken";
65
    }
66
}
67