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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 22
ccs 11
cts 11
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
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