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 ( a37a6f...4072ed )
by
unknown
07:26
created

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