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.

Rpc::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

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 6
rs 10
1
<?php
2
3
namespace AlibabaCloud\Client\Resolver;
4
5
use AlibabaCloud\Client\Exception\ClientException;
6
use AlibabaCloud\Client\Request\RpcRequest;
7
use ReflectionException;
8
9
/**
10
 * Class Rpc
11
 *
12
 * @codeCoverageIgnore
13
 * @package AlibabaCloud\Client\Resolver
14
 */
15
abstract class Rpc extends RpcRequest
16
{
17
    use ActionResolverTrait;
18
    use CallTrait;
19
20
    /**
21
     * @param array $options
22
     *
23
     * @throws ReflectionException
24
     * @throws ClientException
25
     */
26
    public function __construct(array $options = [])
27
    {
28
        parent::__construct($options);
29
30
        $this->resolveActionName();
31
        $this->appendSdkUA();
32
    }
33
34
    /**
35
     * @return mixed
36
     */
37
    private function &parameterPosition()
0 ignored issues
show
Unused Code introduced by
The method parameterPosition() is not used, and could be removed.

This check looks for private methods that have been defined, but are not used inside the class.

Loading history...
38
    {
39
        return $this->options['query'];
40
    }
41
}
42