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

LocationServiceRequest::__construct()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 19
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 17
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 15
c 1
b 0
f 0
nc 4
nop 2
dl 0
loc 19
ccs 17
cts 17
cp 1
crap 3
rs 9.7666
1
<?php
2
3
namespace AlibabaCloud\Client\Regions;
4
5
use AlibabaCloud\Client\Request\Request;
6
use AlibabaCloud\Client\Request\RpcRequest;
7
use AlibabaCloud\Client\Exception\ClientException;
8
9
/**
10
 * Class LocationServiceRequest
11
 *
12
 * @package   AlibabaCloud\Client\Regions
13
 */
14
class LocationServiceRequest extends RpcRequest
15
{
16
17
    /**
18
     * LocationServiceRequest constructor.
19
     *
20
     * @param Request $request
21
     * @param string  $domain
22
     *
23
     * @throws ClientException
24
     */
25 11
    public function __construct(Request $request, $domain)
26
    {
27 11
        parent::__construct();
28 11
        $this->product('Location');
29 11
        $this->version('2015-06-12');
30 11
        $this->action('DescribeEndpoints');
31 11
        $this->regionId('cn-hangzhou');
32 11
        $this->format('JSON');
33 11
        $this->options['query']['Id']          = $request->realRegionId();
34 11
        $this->options['query']['ServiceCode'] = $request->serviceCode;
35 11
        $this->options['query']['Type']        = $request->endpointType;
36 11
        $this->client($request->client);
37 11
        $this->host($domain);
38 11
        if (isset($request->options['timeout'])) {
39 11
            $this->timeout($request->options['timeout']);
40 11
        }
41
42 11
        if (isset($request->options['connect_timeout'])) {
43 11
            $this->connectTimeout($request->options['connect_timeout']);
44 11
        }
45 11
    }
46
}
47