Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | trait ActionResolverTrait |
||
22 | { |
||
23 | /** |
||
24 | * ActionResolverTrait constructor. |
||
25 | * |
||
26 | * @param array $options |
||
27 | * |
||
28 | * @throws ReflectionException |
||
29 | * @throws ClientException |
||
30 | */ |
||
31 | public function __construct(array $options = []) |
||
32 | { |
||
33 | parent::__construct($options); |
||
34 | |||
35 | if ((new ReflectionClass(AlibabaCloud::class))->hasMethod('appendUserAgent')) { |
||
36 | if (class_exists('AlibabaCloud\Release')) { |
||
37 | AlibabaCloud::appendUserAgent('SDK', \AlibabaCloud\Release::VERSION); |
||
|
|||
38 | } |
||
39 | } |
||
40 | |||
41 | if (!$this->action) { |
||
42 | $this->action = $this->getActionNameFromClass(); |
||
43 | } |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | private function getActionNameFromClass() |
||
54 | } |
||
55 | } |
||
56 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths