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 ( ce31c8...904e4b )
by
unknown
06:20
created

MakeSuperResolutionImage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withUrl() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Imageenhan\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ChangeImageSize changeImageSize(array $options = [])
9
 * @method ExtendImageStyle extendImageStyle(array $options = [])
10
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
11
 * @method RecolorImage recolorImage(array $options = [])
12
 * @method SegmentImage segmentImage(array $options = [])
13
 */
14
class ImageenhanApiResolver extends ApiResolver
15
{
16
}
17
18
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
19
{
20
    /** @var string */
21
    public $product = 'imageenhan';
22
23
    /** @var string */
24
    public $version = '2019-09-30';
25
26
    /** @var string */
27
    public $method = 'POST';
28
29
    /** @var string */
30
    public $serviceCode = 'imageenhan';
31
}
32
33
/**
34
 * @method string getUrl()
35
 * @method string getWidth()
36
 * @method string getHeight()
37
 */
38
class ChangeImageSize extends Rpc
39
{
40
41
    /**
42
     * @param string $value
43
     *
44
     * @return $this
45
     */
46
    public function withUrl($value)
47
    {
48
        $this->data['Url'] = $value;
49
        $this->options['form_params']['Url'] = $value;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @param string $value
56
     *
57
     * @return $this
58
     */
59
    public function withWidth($value)
60
    {
61
        $this->data['Width'] = $value;
62
        $this->options['form_params']['Width'] = $value;
63
64
        return $this;
65
    }
66
67
    /**
68
     * @param string $value
69
     *
70
     * @return $this
71
     */
72
    public function withHeight($value)
73
    {
74
        $this->data['Height'] = $value;
75
        $this->options['form_params']['Height'] = $value;
76
77
        return $this;
78
    }
79
}
80
81
/**
82
 * @method string getMajorUrl()
83
 * @method string getStyleUrl()
84
 */
85
class ExtendImageStyle extends Rpc
86
{
87
88
    /**
89
     * @param string $value
90
     *
91
     * @return $this
92
     */
93
    public function withMajorUrl($value)
94
    {
95
        $this->data['MajorUrl'] = $value;
96
        $this->options['form_params']['MajorUrl'] = $value;
97
98
        return $this;
99
    }
100
101
    /**
102
     * @param string $value
103
     *
104
     * @return $this
105
     */
106
    public function withStyleUrl($value)
107
    {
108
        $this->data['StyleUrl'] = $value;
109
        $this->options['form_params']['StyleUrl'] = $value;
110
111
        return $this;
112
    }
113
}
114
115
/**
116
 * @method string getUrl()
117
 */
118
class MakeSuperResolutionImage extends Rpc
119
{
120
121
    /**
122
     * @param string $value
123
     *
124
     * @return $this
125
     */
126
    public function withUrl($value)
127
    {
128
        $this->data['Url'] = $value;
129
        $this->options['form_params']['Url'] = $value;
130
131
        return $this;
132
    }
133
}
134
135
/**
136
 * @method array getColorTemplate()
137
 * @method string getUrl()
138
 * @method string getMode()
139
 * @method string getColorCount()
140
 * @method string getRefUrl()
141
 */
142
class RecolorImage extends Rpc
143
{
144
145
    /**
146
     * @param array $colorTemplate
147
     *
148
     * @return $this
149
     */
150
	public function withColorTemplate(array $colorTemplate)
151
	{
152
	    $this->data['ColorTemplate'] = $colorTemplate;
153
		foreach ($colorTemplate as $depth1 => $depth1Value) {
154
			$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
155
		}
156
157
		return $this;
158
    }
159
160
    /**
161
     * @param string $value
162
     *
163
     * @return $this
164
     */
165
    public function withUrl($value)
166
    {
167
        $this->data['Url'] = $value;
168
        $this->options['form_params']['Url'] = $value;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @param string $value
175
     *
176
     * @return $this
177
     */
178
    public function withMode($value)
179
    {
180
        $this->data['Mode'] = $value;
181
        $this->options['form_params']['Mode'] = $value;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @param string $value
188
     *
189
     * @return $this
190
     */
191
    public function withColorCount($value)
192
    {
193
        $this->data['ColorCount'] = $value;
194
        $this->options['form_params']['ColorCount'] = $value;
195
196
        return $this;
197
    }
198
199
    /**
200
     * @param string $value
201
     *
202
     * @return $this
203
     */
204
    public function withRefUrl($value)
205
    {
206
        $this->data['RefUrl'] = $value;
207
        $this->options['form_params']['RefUrl'] = $value;
208
209
        return $this;
210
    }
211
}
212
213
/**
214
 * @method string getUrl()
215
 */
216
class SegmentImage extends Rpc
217
{
218
219
    /**
220
     * @param string $value
221
     *
222
     * @return $this
223
     */
224
    public function withUrl($value)
225
    {
226
        $this->data['Url'] = $value;
227
        $this->options['form_params']['Url'] = $value;
228
229
        return $this;
230
    }
231
}
232