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 ( 6c888b...bd6d2c )
by
unknown
06:35
created

TaggingImage::withImageURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Imagerecog\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ClassifyingRubbish classifyingRubbish(array $options = [])
9
 * @method DetectFruits detectFruits(array $options = [])
10
 * @method DetectImageElements detectImageElements(array $options = [])
11
 * @method EvaluateCertificateQuality evaluateCertificateQuality(array $options = [])
12
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
13
 * @method RecognizeFood recognizeFood(array $options = [])
14
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
15
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
16
 * @method RecognizeLogo recognizeLogo(array $options = [])
17
 * @method RecognizeScene recognizeScene(array $options = [])
18
 * @method RecognizeVehicleType recognizeVehicleType(array $options = [])
19
 * @method TaggingImage taggingImage(array $options = [])
20
 */
21
class ImagerecogApiResolver extends ApiResolver
22
{
23
}
24
25
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
26
{
27
    /** @var string */
28
    public $product = 'imagerecog';
29
30
    /** @var string */
31
    public $version = '2019-09-30';
32
33
    /** @var string */
34
    public $method = 'POST';
35
36
    /** @var string */
37
    public $serviceCode = 'imagerecog';
38
}
39
40
/**
41
 * @method string getImageURL()
42
 */
43
class ClassifyingRubbish extends Rpc
44
{
45
46
    /**
47
     * @param string $value
48
     *
49
     * @return $this
50
     */
51
    public function withImageURL($value)
52
    {
53
        $this->data['ImageURL'] = $value;
54
        $this->options['form_params']['ImageURL'] = $value;
55
56
        return $this;
57
    }
58
}
59
60
/**
61
 * @method string getImageURL()
62
 */
63
class DetectFruits extends Rpc
64
{
65
66
    /**
67
     * @param string $value
68
     *
69
     * @return $this
70
     */
71
    public function withImageURL($value)
72
    {
73
        $this->data['ImageURL'] = $value;
74
        $this->options['form_params']['ImageURL'] = $value;
75
76
        return $this;
77
    }
78
}
79
80
/**
81
 * @method string getUrl()
82
 */
83
class DetectImageElements extends Rpc
84
{
85
86
    /**
87
     * @param string $value
88
     *
89
     * @return $this
90
     */
91
    public function withUrl($value)
92
    {
93
        $this->data['Url'] = $value;
94
        $this->options['form_params']['Url'] = $value;
95
96
        return $this;
97
    }
98
}
99
100
/**
101
 * @method string getType()
102
 * @method string getImageURL()
103
 */
104
class EvaluateCertificateQuality extends Rpc
105
{
106
107
    /**
108
     * @param string $value
109
     *
110
     * @return $this
111
     */
112
    public function withType($value)
113
    {
114
        $this->data['Type'] = $value;
115
        $this->options['form_params']['Type'] = $value;
116
117
        return $this;
118
    }
119
120
    /**
121
     * @param string $value
122
     *
123
     * @return $this
124
     */
125
    public function withImageURL($value)
126
    {
127
        $this->data['ImageURL'] = $value;
128
        $this->options['form_params']['ImageURL'] = $value;
129
130
        return $this;
131
    }
132
}
133
134
/**
135
 * @method string getJobId()
136
 * @method $this withJobId($value)
137
 * @method string getAsync()
138
 * @method $this withAsync($value)
139
 */
140
class GetAsyncJobResult extends Rpc
141
{
142
143
    /** @var string */
144
    public $method = 'GET';
145
}
146
147
/**
148
 * @method string getImageURL()
149
 */
150
class RecognizeFood extends Rpc
151
{
152
153
    /**
154
     * @param string $value
155
     *
156
     * @return $this
157
     */
158
    public function withImageURL($value)
159
    {
160
        $this->data['ImageURL'] = $value;
161
        $this->options['form_params']['ImageURL'] = $value;
162
163
        return $this;
164
    }
165
}
166
167
/**
168
 * @method string getUrl()
169
 * @method string getColorCount()
170
 */
171
class RecognizeImageColor extends Rpc
172
{
173
174
    /**
175
     * @param string $value
176
     *
177
     * @return $this
178
     */
179
    public function withUrl($value)
180
    {
181
        $this->data['Url'] = $value;
182
        $this->options['form_params']['Url'] = $value;
183
184
        return $this;
185
    }
186
187
    /**
188
     * @param string $value
189
     *
190
     * @return $this
191
     */
192
    public function withColorCount($value)
193
    {
194
        $this->data['ColorCount'] = $value;
195
        $this->options['form_params']['ColorCount'] = $value;
196
197
        return $this;
198
    }
199
}
200
201
/**
202
 * @method string getUrl()
203
 */
204
class RecognizeImageStyle extends Rpc
205
{
206
207
    /**
208
     * @param string $value
209
     *
210
     * @return $this
211
     */
212
    public function withUrl($value)
213
    {
214
        $this->data['Url'] = $value;
215
        $this->options['form_params']['Url'] = $value;
216
217
        return $this;
218
    }
219
}
220
221
/**
222
 * @method array getTasks()
223
 */
224
class RecognizeLogo extends Rpc
225
{
226
227
    /**
228
     * @param array $tasks
229
     *
230
     * @return $this
231
     */
232
	public function withTasks(array $tasks)
233
	{
234
	    $this->data['Tasks'] = $tasks;
235
		foreach ($tasks as $depth1 => $depth1Value) {
236
			if(isset($depth1Value['ImageURL'])){
237
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
238
			}
239
		}
240
241
		return $this;
242
    }
243
}
244
245
/**
246
 * @method string getImageType()
247
 * @method string getImageURL()
248
 */
249
class RecognizeScene extends Rpc
250
{
251
252
    /**
253
     * @param string $value
254
     *
255
     * @return $this
256
     */
257
    public function withImageType($value)
258
    {
259
        $this->data['ImageType'] = $value;
260
        $this->options['form_params']['ImageType'] = $value;
261
262
        return $this;
263
    }
264
265
    /**
266
     * @param string $value
267
     *
268
     * @return $this
269
     */
270
    public function withImageURL($value)
271
    {
272
        $this->data['ImageURL'] = $value;
273
        $this->options['form_params']['ImageURL'] = $value;
274
275
        return $this;
276
    }
277
}
278
279
/**
280
 * @method string getImageURL()
281
 */
282
class RecognizeVehicleType extends Rpc
283
{
284
285
    /**
286
     * @param string $value
287
     *
288
     * @return $this
289
     */
290
    public function withImageURL($value)
291
    {
292
        $this->data['ImageURL'] = $value;
293
        $this->options['form_params']['ImageURL'] = $value;
294
295
        return $this;
296
    }
297
}
298
299
/**
300
 * @method string getMode()
301
 * @method string getImageType()
302
 * @method string getAsync()
303
 * @method string getImageURL()
304
 */
305
class TaggingImage extends Rpc
306
{
307
308
    /**
309
     * @param string $value
310
     *
311
     * @return $this
312
     */
313
    public function withMode($value)
314
    {
315
        $this->data['Mode'] = $value;
316
        $this->options['form_params']['Mode'] = $value;
317
318
        return $this;
319
    }
320
321
    /**
322
     * @param string $value
323
     *
324
     * @return $this
325
     */
326
    public function withImageType($value)
327
    {
328
        $this->data['ImageType'] = $value;
329
        $this->options['form_params']['ImageType'] = $value;
330
331
        return $this;
332
    }
333
334
    /**
335
     * @param string $value
336
     *
337
     * @return $this
338
     */
339
    public function withAsync($value)
340
    {
341
        $this->data['Async'] = $value;
342
        $this->options['form_params']['Async'] = $value;
343
344
        return $this;
345
    }
346
347
    /**
348
     * @param string $value
349
     *
350
     * @return $this
351
     */
352
    public function withImageURL($value)
353
    {
354
        $this->data['ImageURL'] = $value;
355
        $this->options['form_params']['ImageURL'] = $value;
356
357
        return $this;
358
    }
359
}
360