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.
Passed
Pull Request — master (#76)
by Yong
06:44 queued 01:58
created

RegionTrait::regionId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AlibabaCloud\Client\Traits;
4
5
use AlibabaCloud\Client\Exception\ClientException;
6
use AlibabaCloud\Client\Filter\ClientFilter;
7
8
/**
9
 * Trait RegionTrait
10
 *
11
 * @package AlibabaCloud\Client\Traits
12
 */
13
trait RegionTrait
14
{
15
16
    /**
17
     * @var string|null
18
     */
19
    public $regionId;
20
21
    /**
22
     * @param string $regionId
23
     *
24
     * @return $this
25
     * @throws ClientException
26
     */
27 92
    public function regionId($regionId)
28
    {
29 92
        ClientFilter::regionId($regionId);
30
31 90
        $this->regionId = $regionId;
32
33 90
        return $this;
34
    }
35
}
36