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.

RegionTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 19
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A regionId() 0 5 1
1
<?php
2
3
namespace AlibabaCloud\Client\Traits;
4
5
use AlibabaCloud\Client\Filter\ClientFilter;
6
use AlibabaCloud\Client\Exception\ClientException;
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 101
    public function regionId($regionId)
28
    {
29 101
        $this->regionId = ClientFilter::regionId($regionId);
30
31 99
        return $this;
32
    }
33
}
34