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 ( d6d9cf...6355a4 )
by
unknown
32:33 queued 26:23
created

RecognizeLogo::withTasks()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\Imagerecog\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method DetectImageElements detectImageElements(array $options = [])
9
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
10
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
11
 * @method RecognizeLogo recognizeLogo(array $options = [])
12
 * @method RecognizeScene recognizeScene(array $options = [])
13
 * @method TaggingImage taggingImage(array $options = [])
14
 */
15
class ImagerecogApiResolver extends ApiResolver
16
{
17
}
18
19
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
20
{
21
    /** @var string */
22
    public $product = 'imagerecog';
23
24
    /** @var string */
25
    public $version = '2019-09-30';
26
27
    /** @var string */
28
    public $method = 'POST';
29
30
    /** @var string */
31
    public $serviceCode = 'imagerecog';
32
}
33
34
/**
35
 * @method string getUrl()
36
 */
37
class DetectImageElements extends Rpc
38
{
39
40
    /**
41
     * @param string $value
42
     *
43
     * @return $this
44
     */
45
    public function withUrl($value)
46
    {
47
        $this->data['Url'] = $value;
48
        $this->options['form_params']['Url'] = $value;
49
50
        return $this;
51
    }
52
}
53
54
/**
55
 * @method string getUrl()
56
 * @method string getColorCount()
57
 */
58
class RecognizeImageColor extends Rpc
59
{
60
61
    /**
62
     * @param string $value
63
     *
64
     * @return $this
65
     */
66
    public function withUrl($value)
67
    {
68
        $this->data['Url'] = $value;
69
        $this->options['form_params']['Url'] = $value;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return $this
78
     */
79
    public function withColorCount($value)
80
    {
81
        $this->data['ColorCount'] = $value;
82
        $this->options['form_params']['ColorCount'] = $value;
83
84
        return $this;
85
    }
86
}
87
88
/**
89
 * @method string getUrl()
90
 */
91
class RecognizeImageStyle extends Rpc
92
{
93
94
    /**
95
     * @param string $value
96
     *
97
     * @return $this
98
     */
99
    public function withUrl($value)
100
    {
101
        $this->data['Url'] = $value;
102
        $this->options['form_params']['Url'] = $value;
103
104
        return $this;
105
    }
106
}
107
108
/**
109
 * @method array getTasks()
110
 */
111
class RecognizeLogo extends Rpc
112
{
113
114
    /**
115
     * @param array $tasks
116
     *
117
     * @return $this
118
     */
119
	public function withTasks(array $tasks)
120
	{
121
	    $this->data['Tasks'] = $tasks;
122
		foreach ($tasks as $depth1 => $depth1Value) {
123
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
124
		}
125
126
		return $this;
127
    }
128
}
129
130
/**
131
 * @method string getImageType()
132
 * @method string getImageURL()
133
 */
134
class RecognizeScene extends Rpc
135
{
136
137
    /**
138
     * @param string $value
139
     *
140
     * @return $this
141
     */
142
    public function withImageType($value)
143
    {
144
        $this->data['ImageType'] = $value;
145
        $this->options['form_params']['ImageType'] = $value;
146
147
        return $this;
148
    }
149
150
    /**
151
     * @param string $value
152
     *
153
     * @return $this
154
     */
155
    public function withImageURL($value)
156
    {
157
        $this->data['ImageURL'] = $value;
158
        $this->options['form_params']['ImageURL'] = $value;
159
160
        return $this;
161
    }
162
}
163
164
/**
165
 * @method string getImageType()
166
 * @method string getImageURL()
167
 */
168
class TaggingImage extends Rpc
169
{
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withImageType($value)
177
    {
178
        $this->data['ImageType'] = $value;
179
        $this->options['form_params']['ImageType'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withImageURL($value)
190
    {
191
        $this->data['ImageURL'] = $value;
192
        $this->options['form_params']['ImageURL'] = $value;
193
194
        return $this;
195
    }
196
}
197