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 ( bbe43d...78ce5f )
by
unknown
14:42 queued 10:11
created

AdjustVideoColor   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 19
c 1
b 0
f 0
dl 0
loc 79
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A withAsync() 0 6 1
A withVideoCode() 0 6 1
A withMode() 0 6 1
A withVideoUrl() 0 6 1
A withVideoBitrate() 0 6 1
A withVideoFormat() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Videoenhan\V20200320;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AbstractEcommerceVideo abstractEcommerceVideo(array $options = [])
9
 * @method AbstractFilmVideo abstractFilmVideo(array $options = [])
10
 * @method AdjustVideoColor adjustVideoColor(array $options = [])
11
 * @method EraseVideoLogo eraseVideoLogo(array $options = [])
12
 * @method EraseVideoSubtitles eraseVideoSubtitles(array $options = [])
13
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
14
 * @method SuperResolveVideo superResolveVideo(array $options = [])
15
 */
16
class VideoenhanApiResolver extends ApiResolver
17
{
18
}
19
20
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
21
{
22
    /** @var string */
23
    public $product = 'videoenhan';
24
25
    /** @var string */
26
    public $version = '2020-03-20';
27
28
    /** @var string */
29
    public $method = 'POST';
30
31
    /** @var string */
32
    public $serviceCode = 'videoenhan';
33
}
34
35
/**
36
 * @method string getDuration()
37
 * @method string getAsync()
38
 * @method string getVideoUrl()
39
 * @method string getWidth()
40
 * @method string getHeight()
41
 */
42
class AbstractEcommerceVideo extends Rpc
43
{
44
45
    /**
46
     * @param string $value
47
     *
48
     * @return $this
49
     */
50
    public function withDuration($value)
51
    {
52
        $this->data['Duration'] = $value;
53
        $this->options['form_params']['Duration'] = $value;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @param string $value
60
     *
61
     * @return $this
62
     */
63
    public function withAsync($value)
64
    {
65
        $this->data['Async'] = $value;
66
        $this->options['form_params']['Async'] = $value;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $value
73
     *
74
     * @return $this
75
     */
76
    public function withVideoUrl($value)
77
    {
78
        $this->data['VideoUrl'] = $value;
79
        $this->options['form_params']['VideoUrl'] = $value;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @param string $value
86
     *
87
     * @return $this
88
     */
89
    public function withWidth($value)
90
    {
91
        $this->data['Width'] = $value;
92
        $this->options['form_params']['Width'] = $value;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @param string $value
99
     *
100
     * @return $this
101
     */
102
    public function withHeight($value)
103
    {
104
        $this->data['Height'] = $value;
105
        $this->options['form_params']['Height'] = $value;
106
107
        return $this;
108
    }
109
}
110
111
/**
112
 * @method string getLength()
113
 * @method string getAsync()
114
 * @method string getVideoUrl()
115
 */
116
class AbstractFilmVideo extends Rpc
117
{
118
119
    /**
120
     * @param string $value
121
     *
122
     * @return $this
123
     */
124
    public function withLength($value)
125
    {
126
        $this->data['Length'] = $value;
127
        $this->options['form_params']['Length'] = $value;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @param string $value
134
     *
135
     * @return $this
136
     */
137
    public function withAsync($value)
138
    {
139
        $this->data['Async'] = $value;
140
        $this->options['form_params']['Async'] = $value;
141
142
        return $this;
143
    }
144
145
    /**
146
     * @param string $value
147
     *
148
     * @return $this
149
     */
150
    public function withVideoUrl($value)
151
    {
152
        $this->data['VideoUrl'] = $value;
153
        $this->options['form_params']['VideoUrl'] = $value;
154
155
        return $this;
156
    }
157
}
158
159
/**
160
 * @method string getMode()
161
 * @method string getAsync()
162
 * @method string getVideoCode()
163
 * @method string getVideoUrl()
164
 * @method string getVideoBitrate()
165
 * @method string getVideoFormat()
166
 */
167
class AdjustVideoColor extends Rpc
168
{
169
170
    /**
171
     * @param string $value
172
     *
173
     * @return $this
174
     */
175
    public function withMode($value)
176
    {
177
        $this->data['Mode'] = $value;
178
        $this->options['form_params']['Mode'] = $value;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @param string $value
185
     *
186
     * @return $this
187
     */
188
    public function withAsync($value)
189
    {
190
        $this->data['Async'] = $value;
191
        $this->options['form_params']['Async'] = $value;
192
193
        return $this;
194
    }
195
196
    /**
197
     * @param string $value
198
     *
199
     * @return $this
200
     */
201
    public function withVideoCode($value)
202
    {
203
        $this->data['VideoCode'] = $value;
204
        $this->options['form_params']['VideoCode'] = $value;
205
206
        return $this;
207
    }
208
209
    /**
210
     * @param string $value
211
     *
212
     * @return $this
213
     */
214
    public function withVideoUrl($value)
215
    {
216
        $this->data['VideoUrl'] = $value;
217
        $this->options['form_params']['VideoUrl'] = $value;
218
219
        return $this;
220
    }
221
222
    /**
223
     * @param string $value
224
     *
225
     * @return $this
226
     */
227
    public function withVideoBitrate($value)
228
    {
229
        $this->data['VideoBitrate'] = $value;
230
        $this->options['form_params']['VideoBitrate'] = $value;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param string $value
237
     *
238
     * @return $this
239
     */
240
    public function withVideoFormat($value)
241
    {
242
        $this->data['VideoFormat'] = $value;
243
        $this->options['form_params']['VideoFormat'] = $value;
244
245
        return $this;
246
    }
247
}
248
249
/**
250
 * @method array getBoxes()
251
 * @method string getAsync()
252
 * @method string getVideoUrl()
253
 */
254
class EraseVideoLogo extends Rpc
255
{
256
257
    /**
258
     * @param array $boxes
259
     *
260
     * @return $this
261
     */
262
	public function withBoxes(array $boxes)
263
	{
264
	    $this->data['Boxes'] = $boxes;
265
		foreach ($boxes as $depth1 => $depth1Value) {
266
			$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.W'] = $depth1Value['W'];
267
			$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.H'] = $depth1Value['H'];
268
			$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
269
			$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
270
		}
271
272
		return $this;
273
    }
274
275
    /**
276
     * @param string $value
277
     *
278
     * @return $this
279
     */
280
    public function withAsync($value)
281
    {
282
        $this->data['Async'] = $value;
283
        $this->options['form_params']['Async'] = $value;
284
285
        return $this;
286
    }
287
288
    /**
289
     * @param string $value
290
     *
291
     * @return $this
292
     */
293
    public function withVideoUrl($value)
294
    {
295
        $this->data['VideoUrl'] = $value;
296
        $this->options['form_params']['VideoUrl'] = $value;
297
298
        return $this;
299
    }
300
}
301
302
/**
303
 * @method string getBH()
304
 * @method string getAsync()
305
 * @method string getVideoUrl()
306
 * @method string getBW()
307
 * @method string getBX()
308
 * @method string getBY()
309
 */
310
class EraseVideoSubtitles extends Rpc
311
{
312
313
    /**
314
     * @param string $value
315
     *
316
     * @return $this
317
     */
318
    public function withBH($value)
319
    {
320
        $this->data['BH'] = $value;
321
        $this->options['form_params']['BH'] = $value;
322
323
        return $this;
324
    }
325
326
    /**
327
     * @param string $value
328
     *
329
     * @return $this
330
     */
331
    public function withAsync($value)
332
    {
333
        $this->data['Async'] = $value;
334
        $this->options['form_params']['Async'] = $value;
335
336
        return $this;
337
    }
338
339
    /**
340
     * @param string $value
341
     *
342
     * @return $this
343
     */
344
    public function withVideoUrl($value)
345
    {
346
        $this->data['VideoUrl'] = $value;
347
        $this->options['form_params']['VideoUrl'] = $value;
348
349
        return $this;
350
    }
351
352
    /**
353
     * @param string $value
354
     *
355
     * @return $this
356
     */
357
    public function withBW($value)
358
    {
359
        $this->data['BW'] = $value;
360
        $this->options['form_params']['BW'] = $value;
361
362
        return $this;
363
    }
364
365
    /**
366
     * @param string $value
367
     *
368
     * @return $this
369
     */
370
    public function withBX($value)
371
    {
372
        $this->data['BX'] = $value;
373
        $this->options['form_params']['BX'] = $value;
374
375
        return $this;
376
    }
377
378
    /**
379
     * @param string $value
380
     *
381
     * @return $this
382
     */
383
    public function withBY($value)
384
    {
385
        $this->data['BY'] = $value;
386
        $this->options['form_params']['BY'] = $value;
387
388
        return $this;
389
    }
390
}
391
392
/**
393
 * @method string getAsync()
394
 * @method string getJobId()
395
 */
396
class GetAsyncJobResult extends Rpc
397
{
398
399
    /**
400
     * @param string $value
401
     *
402
     * @return $this
403
     */
404
    public function withAsync($value)
405
    {
406
        $this->data['Async'] = $value;
407
        $this->options['form_params']['Async'] = $value;
408
409
        return $this;
410
    }
411
412
    /**
413
     * @param string $value
414
     *
415
     * @return $this
416
     */
417
    public function withJobId($value)
418
    {
419
        $this->data['JobId'] = $value;
420
        $this->options['form_params']['JobId'] = $value;
421
422
        return $this;
423
    }
424
}
425
426
/**
427
 * @method string getBitRate()
428
 * @method string getAsync()
429
 * @method string getVideoUrl()
430
 */
431
class SuperResolveVideo extends Rpc
432
{
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withBitRate($value)
440
    {
441
        $this->data['BitRate'] = $value;
442
        $this->options['form_params']['BitRate'] = $value;
443
444
        return $this;
445
    }
446
447
    /**
448
     * @param string $value
449
     *
450
     * @return $this
451
     */
452
    public function withAsync($value)
453
    {
454
        $this->data['Async'] = $value;
455
        $this->options['form_params']['Async'] = $value;
456
457
        return $this;
458
    }
459
460
    /**
461
     * @param string $value
462
     *
463
     * @return $this
464
     */
465
    public function withVideoUrl($value)
466
    {
467
        $this->data['VideoUrl'] = $value;
468
        $this->options['form_params']['VideoUrl'] = $value;
469
470
        return $this;
471
    }
472
}
473