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 ( db5095...22c244 )
by
unknown
05:49
created

ScanImage::withTask()   B

Complexity

Conditions 7
Paths 33

Size

Total Lines 22
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 22
rs 8.8333
c 0
b 0
f 0
cc 7
nc 33
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
 * @method ScanText scanText(array $options = [])
10
 */
11
class ImageauditApiResolver extends ApiResolver
12
{
13
}
14
15
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
16
{
17
    /** @var string */
18
    public $product = 'imageaudit';
19
20
    /** @var string */
21
    public $version = '2019-12-30';
22
23
    /** @var string */
24
    public $method = 'POST';
25
26
    /** @var string */
27
    public $serviceCode = 'imageaudit';
28
}
29
30
/**
31
 * @method array getScene()
32
 * @method array getTask()
33
 */
34
class ScanImage extends Rpc
35
{
36
37
    /**
38
     * @param array $scene
39
     *
40
     * @return $this
41
     */
42
	public function withScene(array $scene)
43
	{
44
	    $this->data['Scene'] = $scene;
45
		foreach ($scene as $i => $iValue) {
46
			$this->options['form_params']['Scene.' . ($i + 1)] = $iValue;
47
		}
48
49
		return $this;
50
    }
51
52
    /**
53
     * @param array $task
54
     *
55
     * @return $this
56
     */
57
	public function withTask(array $task)
58
	{
59
	    $this->data['Task'] = $task;
60
		foreach ($task as $depth1 => $depth1Value) {
61
			if(isset($depth1Value['DataId'])){
62
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
63
			}
64
			if(isset($depth1Value['ImageURL'])){
65
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
66
			}
67
			if(isset($depth1Value['MaxFrames'])){
68
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.MaxFrames'] = $depth1Value['MaxFrames'];
69
			}
70
			if(isset($depth1Value['Interval'])){
71
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.Interval'] = $depth1Value['Interval'];
72
			}
73
			if(isset($depth1Value['ImageTimeMillisecond'])){
74
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageTimeMillisecond'] = $depth1Value['ImageTimeMillisecond'];
75
			}
76
		}
77
78
		return $this;
79
    }
80
}
81
82
/**
83
 * @method array getLabels()
84
 * @method array getTasks()
85
 */
86
class ScanText extends Rpc
87
{
88
89
    /**
90
     * @param array $labels
91
     *
92
     * @return $this
93
     */
94
	public function withLabels(array $labels)
95
	{
96
	    $this->data['Labels'] = $labels;
97
		foreach ($labels as $depth1 => $depth1Value) {
98
			if(isset($depth1Value['Label'])){
99
				$this->options['form_params']['Labels.' . ($depth1 + 1) . '.Label'] = $depth1Value['Label'];
100
			}
101
		}
102
103
		return $this;
104
    }
105
106
    /**
107
     * @param array $tasks
108
     *
109
     * @return $this
110
     */
111
	public function withTasks(array $tasks)
112
	{
113
	    $this->data['Tasks'] = $tasks;
114
		foreach ($tasks as $depth1 => $depth1Value) {
115
			if(isset($depth1Value['Content'])){
116
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.Content'] = $depth1Value['Content'];
117
			}
118
		}
119
120
		return $this;
121
    }
122
}
123