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.
Test Failed
Push — master ( 103e62...76541a )
by
unknown
06:03
created

LookupEvents::withLookupAttribute()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 13
rs 10
cc 4
nc 5
nop 1
1
<?php
2
3
namespace AlibabaCloud\Actiontrail\V20200706;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateDeliveryHistoryJob createDeliveryHistoryJob(array $options = [])
9
 * @method DeleteDeliveryHistoryJob deleteDeliveryHistoryJob(array $options = [])
10
 * @method ListDeliveryHistoryJobs listDeliveryHistoryJobs(array $options = [])
11
 * @method LookupEvents lookupEvents(array $options = [])
12
 */
13
class ActiontrailApiResolver extends ApiResolver
14
{
15
}
16
17
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
18
{
19
    /** @var string */
20
    public $product = 'Actiontrail';
21
22
    /** @var string */
23
    public $version = '2020-07-06';
24
25
    /** @var string */
26
    public $method = 'POST';
27
28
    /** @var string */
29
    public $serviceCode = 'actiontrail';
30
}
31
32
/**
33
 * @method string getClientToken()
34
 * @method $this withClientToken($value)
35
 * @method string getTrailName()
36
 * @method $this withTrailName($value)
37
 */
38
class CreateDeliveryHistoryJob extends Rpc
39
{
40
}
41
42
/**
43
 * @method string getJobId()
44
 * @method $this withJobId($value)
45
 */
46
class DeleteDeliveryHistoryJob extends Rpc
47
{
48
}
49
50
/**
51
 * @method string getPageNumber()
52
 * @method $this withPageNumber($value)
53
 * @method string getPageSize()
54
 * @method $this withPageSize($value)
55
 */
56
class ListDeliveryHistoryJobs extends Rpc
57
{
58
}
59
60
/**
61
 * @method string getEndTime()
62
 * @method $this withEndTime($value)
63
 * @method string getStartTime()
64
 * @method $this withStartTime($value)
65
 * @method string getNextToken()
66
 * @method $this withNextToken($value)
67
 * @method array getLookupAttribute()
68
 * @method string getMaxResults()
69
 * @method $this withMaxResults($value)
70
 * @method string getDirection()
71
 * @method $this withDirection($value)
72
 */
73
class LookupEvents extends Rpc
74
{
75
76
    /**
77
     * @param array $lookupAttribute
78
     *
79
     * @return $this
80
     */
81
	public function withLookupAttribute(array $lookupAttribute)
82
	{
83
	    $this->data['LookupAttribute'] = $lookupAttribute;
84
		foreach ($lookupAttribute as $depth1 => $depth1Value) {
85
			if(isset($depth1Value['Value'])){
86
				$this->options['query']['LookupAttribute.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
87
			}
88
			if(isset($depth1Value['Key'])){
89
				$this->options['query']['LookupAttribute.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
90
			}
91
		}
92
93
		return $this;
94
    }
95
}
96