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.

LocationServiceRequest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 30
ccs 17
cts 17
cp 1
rs 10
wmc 3

1 Method

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