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.
Passed
Pull Request — master (#231)
by Yong
09:44 queued 05:23
created

EcsRamRoleClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace AlibabaCloud\Client\Clients;
4
5
use AlibabaCloud\Client\Exception\ClientException;
6
use AlibabaCloud\Client\Signature\ShaHmac1Signature;
7
use AlibabaCloud\Client\Credentials\EcsRamRoleCredential;
8
9
/**
10
 * Use the RAM role of an ECS instance to complete the authentication.
11
 */
12
class EcsRamRoleClient extends Client
13
{
14
    /**
15
     * @param string $roleName
16
     *
17
     * @throws ClientException
18
     */
19 21
    public function __construct($roleName)
20
    {
21 21
        parent::__construct(
22 21
            new EcsRamRoleCredential($roleName),
23 19
            new ShaHmac1Signature()
24 19
        );
25 19
    }
26
}
27