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
Push — master ( 2d0137...54f172 )
by Yong
12:14 queued 08:03
created

GenerateSessionAccessKey::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 10
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 12
ccs 11
cts 11
cp 1
crap 1
rs 9.9332
1
<?php
2
3
namespace AlibabaCloud\Client\Credentials\Requests;
4
5
use AlibabaCloud\Client\Request\RpcRequest;
6
use AlibabaCloud\Client\Exception\ClientException;
7
use AlibabaCloud\Client\Credentials\Providers\Provider;
8
9
/**
10
 * Use the RSA key pair to complete the authentication (supported only on Japanese site)
11
 *
12
 * @package   AlibabaCloud\Client\Credentials\Requests
13
 */
14
class GenerateSessionAccessKey extends RpcRequest
15
{
16
17
    /**
18
     * GenerateSessionAccessKey constructor.
19
     *
20
     * @param string $publicKeyId
21
     *
22
     * @throws ClientException
23
     */
24 6
    public function __construct($publicKeyId)
25
    {
26 6
        parent::__construct();
27 6
        $this->product('Sts');
28 6
        $this->version('2015-04-01');
29 6
        $this->action('GenerateSessionAccessKey');
30 6
        $this->host('sts.ap-northeast-1.aliyuncs.com');
31 6
        $this->scheme('https');
32 6
        $this->regionId('cn-hangzhou');
33 6
        $this->options['verify']                   = false;
34 6
        $this->options['query']['PublicKeyId']     = $publicKeyId;
35 6
        $this->options['query']['DurationSeconds'] = Provider::DURATION_SECONDS;
36 6
    }
37
}
38