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 ( 52fff5...63a2fb )
by
unknown
07:47
created

DetectFruits::withImageURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Imagerecog\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ClassifyingRubbish classifyingRubbish(array $options = [])
9
 * @method DetectFruits detectFruits(array $options = [])
10
 * @method DetectImageElements detectImageElements(array $options = [])
11
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
12
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
13
 * @method RecognizeLogo recognizeLogo(array $options = [])
14
 * @method RecognizeScene recognizeScene(array $options = [])
15
 * @method RecognizeVehicleType recognizeVehicleType(array $options = [])
16
 * @method TaggingImage taggingImage(array $options = [])
17
 */
18
class ImagerecogApiResolver extends ApiResolver
19
{
20
}
21
22
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
23
{
24
    /** @var string */
25
    public $product = 'imagerecog';
26
27
    /** @var string */
28
    public $version = '2019-09-30';
29
30
    /** @var string */
31
    public $method = 'POST';
32
33
    /** @var string */
34
    public $serviceCode = 'imagerecog';
35
}
36
37
/**
38
 * @method string getImageURL()
39
 */
40
class ClassifyingRubbish extends Rpc
41
{
42
43
    /**
44
     * @param string $value
45
     *
46
     * @return $this
47
     */
48
    public function withImageURL($value)
49
    {
50
        $this->data['ImageURL'] = $value;
51
        $this->options['form_params']['ImageURL'] = $value;
52
53
        return $this;
54
    }
55
}
56
57
/**
58
 * @method string getImageURL()
59
 */
60
class DetectFruits extends Rpc
61
{
62
63
    /**
64
     * @param string $value
65
     *
66
     * @return $this
67
     */
68
    public function withImageURL($value)
69
    {
70
        $this->data['ImageURL'] = $value;
71
        $this->options['form_params']['ImageURL'] = $value;
72
73
        return $this;
74
    }
75
}
76
77
/**
78
 * @method string getUrl()
79
 */
80
class DetectImageElements extends Rpc
81
{
82
83
    /**
84
     * @param string $value
85
     *
86
     * @return $this
87
     */
88
    public function withUrl($value)
89
    {
90
        $this->data['Url'] = $value;
91
        $this->options['form_params']['Url'] = $value;
92
93
        return $this;
94
    }
95
}
96
97
/**
98
 * @method string getUrl()
99
 * @method string getColorCount()
100
 */
101
class RecognizeImageColor extends Rpc
102
{
103
104
    /**
105
     * @param string $value
106
     *
107
     * @return $this
108
     */
109
    public function withUrl($value)
110
    {
111
        $this->data['Url'] = $value;
112
        $this->options['form_params']['Url'] = $value;
113
114
        return $this;
115
    }
116
117
    /**
118
     * @param string $value
119
     *
120
     * @return $this
121
     */
122
    public function withColorCount($value)
123
    {
124
        $this->data['ColorCount'] = $value;
125
        $this->options['form_params']['ColorCount'] = $value;
126
127
        return $this;
128
    }
129
}
130
131
/**
132
 * @method string getUrl()
133
 */
134
class RecognizeImageStyle extends Rpc
135
{
136
137
    /**
138
     * @param string $value
139
     *
140
     * @return $this
141
     */
142
    public function withUrl($value)
143
    {
144
        $this->data['Url'] = $value;
145
        $this->options['form_params']['Url'] = $value;
146
147
        return $this;
148
    }
149
}
150
151
/**
152
 * @method array getTasks()
153
 */
154
class RecognizeLogo extends Rpc
155
{
156
157
    /**
158
     * @param array $tasks
159
     *
160
     * @return $this
161
     */
162
	public function withTasks(array $tasks)
163
	{
164
	    $this->data['Tasks'] = $tasks;
165
		foreach ($tasks as $depth1 => $depth1Value) {
166
			if(isset($depth1Value['ImageURL'])){
167
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
168
			}
169
		}
170
171
		return $this;
172
    }
173
}
174
175
/**
176
 * @method string getImageType()
177
 * @method string getImageURL()
178
 */
179
class RecognizeScene extends Rpc
180
{
181
182
    /**
183
     * @param string $value
184
     *
185
     * @return $this
186
     */
187
    public function withImageType($value)
188
    {
189
        $this->data['ImageType'] = $value;
190
        $this->options['form_params']['ImageType'] = $value;
191
192
        return $this;
193
    }
194
195
    /**
196
     * @param string $value
197
     *
198
     * @return $this
199
     */
200
    public function withImageURL($value)
201
    {
202
        $this->data['ImageURL'] = $value;
203
        $this->options['form_params']['ImageURL'] = $value;
204
205
        return $this;
206
    }
207
}
208
209
/**
210
 * @method string getImageURL()
211
 */
212
class RecognizeVehicleType extends Rpc
213
{
214
215
    /**
216
     * @param string $value
217
     *
218
     * @return $this
219
     */
220
    public function withImageURL($value)
221
    {
222
        $this->data['ImageURL'] = $value;
223
        $this->options['form_params']['ImageURL'] = $value;
224
225
        return $this;
226
    }
227
}
228
229
/**
230
 * @method string getImageType()
231
 * @method string getImageURL()
232
 */
233
class TaggingImage extends Rpc
234
{
235
236
    /**
237
     * @param string $value
238
     *
239
     * @return $this
240
     */
241
    public function withImageType($value)
242
    {
243
        $this->data['ImageType'] = $value;
244
        $this->options['form_params']['ImageType'] = $value;
245
246
        return $this;
247
    }
248
249
    /**
250
     * @param string $value
251
     *
252
     * @return $this
253
     */
254
    public function withImageURL($value)
255
    {
256
        $this->data['ImageURL'] = $value;
257
        $this->options['form_params']['ImageURL'] = $value;
258
259
        return $this;
260
    }
261
}
262