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.

Issues (74)

src/Resolver/ActionResolverTrait.php (2 issues)

1
<?php
2
3
namespace AlibabaCloud\Client\Resolver;
4
5
use ReflectionClass;
6
use ReflectionException;
7
use AlibabaCloud\Client\AlibabaCloud;
8
use AlibabaCloud\Client\Request\Request;
9
use AlibabaCloud\Client\Exception\ClientException;
10
11
/**
12
 * @codeCoverageIgnore
13
 * @mixin Rpc
14
 * @mixin Roa
15
 * @mixin Request
16
 * @package AlibabaCloud\Client\Resolver
17
 */
18
trait ActionResolverTrait
19
{
20
21
    /**
22
     * Resolve Action name from class name
23
     */
24
    private function resolveActionName()
25
    {
26
        if (!$this->action) {
27
            $array        = explode('\\', get_class($this));
28
            $this->action = array_pop($array);
0 ignored issues
show
Bug Best Practice introduced by
The property action does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
29
        }
30
    }
31
32
    /**
33
     * Append SDK version into User-Agent
34
     *
35
     * @throws ClientException
36
     * @throws ReflectionException
37
     */
38
    private function appendSdkUA()
39
    {
40
        if (!(new ReflectionClass(AlibabaCloud::class))->hasMethod('appendUserAgent')) {
41
            return;
42
        }
43
44
        if (!class_exists('AlibabaCloud\Release')) {
45
            return;
46
        }
47
48
        AlibabaCloud::appendUserAgent('SDK', \AlibabaCloud\Release::VERSION);
0 ignored issues
show
The type AlibabaCloud\Release was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
49
    }
50
}
51