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 ( d0d371...0ac895 )
by
unknown
12:06 queued 02:32
created

IntelligentComposition   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withImageURL() 0 6 1
A withNumBoxes() 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 IntelligentComposition intelligentComposition(array $options = [])
11
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
12
 * @method RecolorImage recolorImage(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 getNumBoxes()
117
 * @method string getImageURL()
118
 */
119
class IntelligentComposition extends Rpc
120
{
121
122
    /**
123
     * @param string $value
124
     *
125
     * @return $this
126
     */
127
    public function withNumBoxes($value)
128
    {
129
        $this->data['NumBoxes'] = $value;
130
        $this->options['form_params']['NumBoxes'] = $value;
131
132
        return $this;
133
    }
134
135
    /**
136
     * @param string $value
137
     *
138
     * @return $this
139
     */
140
    public function withImageURL($value)
141
    {
142
        $this->data['ImageURL'] = $value;
143
        $this->options['form_params']['ImageURL'] = $value;
144
145
        return $this;
146
    }
147
}
148
149
/**
150
 * @method string getUrl()
151
 */
152
class MakeSuperResolutionImage extends Rpc
153
{
154
155
    /**
156
     * @param string $value
157
     *
158
     * @return $this
159
     */
160
    public function withUrl($value)
161
    {
162
        $this->data['Url'] = $value;
163
        $this->options['form_params']['Url'] = $value;
164
165
        return $this;
166
    }
167
}
168
169
/**
170
 * @method array getColorTemplate()
171
 * @method string getUrl()
172
 * @method string getMode()
173
 * @method string getColorCount()
174
 * @method string getRefUrl()
175
 */
176
class RecolorImage extends Rpc
177
{
178
179
    /**
180
     * @param array $colorTemplate
181
     *
182
     * @return $this
183
     */
184
	public function withColorTemplate(array $colorTemplate)
185
	{
186
	    $this->data['ColorTemplate'] = $colorTemplate;
187
		foreach ($colorTemplate as $depth1 => $depth1Value) {
188
			$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
189
		}
190
191
		return $this;
192
    }
193
194
    /**
195
     * @param string $value
196
     *
197
     * @return $this
198
     */
199
    public function withUrl($value)
200
    {
201
        $this->data['Url'] = $value;
202
        $this->options['form_params']['Url'] = $value;
203
204
        return $this;
205
    }
206
207
    /**
208
     * @param string $value
209
     *
210
     * @return $this
211
     */
212
    public function withMode($value)
213
    {
214
        $this->data['Mode'] = $value;
215
        $this->options['form_params']['Mode'] = $value;
216
217
        return $this;
218
    }
219
220
    /**
221
     * @param string $value
222
     *
223
     * @return $this
224
     */
225
    public function withColorCount($value)
226
    {
227
        $this->data['ColorCount'] = $value;
228
        $this->options['form_params']['ColorCount'] = $value;
229
230
        return $this;
231
    }
232
233
    /**
234
     * @param string $value
235
     *
236
     * @return $this
237
     */
238
    public function withRefUrl($value)
239
    {
240
        $this->data['RefUrl'] = $value;
241
        $this->options['form_params']['RefUrl'] = $value;
242
243
        return $this;
244
    }
245
}
246