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 ( e9b98f...cf5328 )
by Yong
04:26
created

src/Resolver/CallTrait.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace AlibabaCloud\Client\Resolver;
4
5
use RuntimeException;
6
7
/**
8
 * Trait CallTrait
9
 *
10
 * @codeCoverageIgnore
11
 * @package AlibabaCloud\Client\Resolver
12
 */
13
trait CallTrait
14
{
15
    /**
16
     * Magic method for set or get request parameters.
17
     *
18
     * @param string $name
19
     * @param mixed  $arguments
20
     *
21
     * @return $this
22
     */
23
    public function __call($name, $arguments)
24
    {
25
        if (strncmp($name, 'get', 3) === 0) {
26
            $parameter = $this->propertyNameByMethodName($name);
0 ignored issues
show
The method propertyNameByMethodName() does not exist on AlibabaCloud\Client\Resolver\CallTrait. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
            /** @scrutinizer ignore-call */ 
27
            $parameter = $this->propertyNameByMethodName($name);
Loading history...
27
28
            return $this->__get($parameter);
29
        }
30
31
        if (strncmp($name, 'with', 4) === 0) {
32
            $parameter = $this->propertyNameByMethodName($name, 4);
33
34
            $value                                    = $arguments[0];
35
            $this->data[$parameter]                   = $value;
36
            $this->parameterPosition()[$parameter] = $value;
37
38
            return $this;
39
        }
40
41
        if (strncmp($name, 'set', 3) === 0) {
42
            $parameter   = $this->propertyNameByMethodName($name);
43
            $with_method = "with$parameter";
44
45
            return $this->$with_method($arguments[0]);
46
        }
47
48
        throw new RuntimeException('Call to undefined method ' . __CLASS__ . '::' . $name . '()');
49
    }
50
}
51