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 ( 0ac895...640a71 )
by
unknown
19:03 queued 10:06
created

ScanText::withTasks()   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
 * @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
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
62
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
63
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.MaxFrames'] = $depth1Value['MaxFrames'];
64
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.Interval'] = $depth1Value['Interval'];
65
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageTimeMillisecond'] = $depth1Value['ImageTimeMillisecond'];
66
		}
67
68
		return $this;
69
    }
70
}
71
72
/**
73
 * @method array getLabels()
74
 * @method array getTasks()
75
 */
76
class ScanText extends Rpc
77
{
78
79
    /**
80
     * @param array $labels
81
     *
82
     * @return $this
83
     */
84
	public function withLabels(array $labels)
85
	{
86
	    $this->data['Labels'] = $labels;
87
		foreach ($labels as $depth1 => $depth1Value) {
88
			$this->options['form_params']['Labels.' . ($depth1 + 1) . '.Label'] = $depth1Value['Label'];
89
		}
90
91
		return $this;
92
    }
93
94
    /**
95
     * @param array $tasks
96
     *
97
     * @return $this
98
     */
99
	public function withTasks(array $tasks)
100
	{
101
	    $this->data['Tasks'] = $tasks;
102
		foreach ($tasks as $depth1 => $depth1Value) {
103
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.Content'] = $depth1Value['Content'];
104
		}
105
106
		return $this;
107
    }
108
}
109