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 ( 8c7cf2...fdfe63 )
by
unknown
16:11 queued 10:30
created

ScanImage::withScenes()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\Imageaudit\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ScanImage scanImage(array $options = [])
9
 */
10
class ImageauditApiResolver extends ApiResolver
11
{
12
}
13
14
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
15
{
16
    /** @var string */
17
    public $product = 'imageaudit';
18
19
    /** @var string */
20
    public $version = '2019-12-30';
21
22
    /** @var string */
23
    public $method = 'POST';
24
25
    /** @var string */
26
    public $serviceCode = 'imageaudit';
27
}
28
29
/**
30
 * @method array getScenes()
31
 * @method array getTasks()
32
 */
33
class ScanImage extends Rpc
34
{
35
36
    /**
37
     * @param array $scenes
38
     *
39
     * @return $this
40
     */
41
	public function withScenes(array $scenes)
42
	{
43
	    $this->data['Scenes'] = $scenes;
44
		foreach ($scenes as $i => $iValue) {
45
			$this->options['form_params']['Scenes.' . ($i + 1)] = $iValue;
46
		}
47
48
		return $this;
49
    }
50
51
    /**
52
     * @param array $tasks
53
     *
54
     * @return $this
55
     */
56
	public function withTasks(array $tasks)
57
	{
58
	    $this->data['Tasks'] = $tasks;
59
		foreach ($tasks as $depth1 => $depth1Value) {
60
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
61
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
62
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.MaxFrames'] = $depth1Value['MaxFrames'];
63
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.Interval'] = $depth1Value['Interval'];
64
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageTimeMillisecond'] = $depth1Value['ImageTimeMillisecond'];
65
		}
66
67
		return $this;
68
    }
69
}
70