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 ( 0e8083...01ed0c )
by
unknown
05:52
created

ScanImage::withScene()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
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 getScene()
31
 * @method array getTask()
32
 */
33
class ScanImage extends Rpc
34
{
35
36
    /**
37
     * @param array $scene
38
     *
39
     * @return $this
40
     */
41
	public function withScene(array $scene)
42
	{
43
	    $this->data['Scene'] = $scene;
44
		foreach ($scene as $i => $iValue) {
45
			$this->options['form_params']['Scene.' . ($i + 1)] = $iValue;
46
		}
47
48
		return $this;
49
    }
50
51
    /**
52
     * @param array $task
53
     *
54
     * @return $this
55
     */
56
	public function withTask(array $task)
57
	{
58
	    $this->data['Task'] = $task;
59
		foreach ($task as $depth1 => $depth1Value) {
60
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
61
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
62
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.MaxFrames'] = $depth1Value['MaxFrames'];
63
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.Interval'] = $depth1Value['Interval'];
64
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageTimeMillisecond'] = $depth1Value['ImageTimeMillisecond'];
65
		}
66
67
		return $this;
68
    }
69
}
70