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 ( 426c11...41eda7 )
by
unknown
07:03
created

TranslateText::withToLang()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Hiknoengine\V20190625;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method TranslateText translateText(array $options = [])
9
 */
10
class HiknoengineApiResolver extends ApiResolver
11
{
12
}
13
14
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
15
{
16
    /** @var string */
17
    public $product = 'hiknoengine';
18
19
    /** @var string */
20
    public $version = '2019-06-25';
21
22
    /** @var string */
23
    public $method = 'POST';
24
25
    /** @var string */
26
    public $serviceCode = 'hiknoengine';
27
}
28
29
/**
30
 * @method string getFromLang()
31
 * @method string getToLang()
32
 * @method string getText()
33
 */
34
class TranslateText extends Rpc
35
{
36
37
    /**
38
     * @param string $value
39
     *
40
     * @return $this
41
     */
42
    public function withFromLang($value)
43
    {
44
        $this->data['FromLang'] = $value;
45
        $this->options['form_params']['FromLang'] = $value;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @param string $value
52
     *
53
     * @return $this
54
     */
55
    public function withToLang($value)
56
    {
57
        $this->data['ToLang'] = $value;
58
        $this->options['form_params']['ToLang'] = $value;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @param string $value
65
     *
66
     * @return $this
67
     */
68
    public function withText($value)
69
    {
70
        $this->data['Text'] = $value;
71
        $this->options['form_params']['Text'] = $value;
72
73
        return $this;
74
    }
75
}
76