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.

DeprecatedRoaTrait::putPathParameter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
3
namespace AlibabaCloud\Client\Request\Traits;
4
5
/**
6
 * @package    AlibabaCloud\Client\Request\Traits
7
 * @codeCoverageIgnore
8
 */
9
trait DeprecatedRoaTrait
10
{
11
    /**
12
     * @param $name
13
     * @param $value
14
     *
15
     * @return $this
16
     * @deprecated
17
     * @codeCoverageIgnore
18
     */
19
    public function putPathParameter($name, $value)
20
    {
21
        return $this->pathParameter($name, $value);
0 ignored issues
show
Bug introduced by
It seems like pathParameter() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        return $this->/** @scrutinizer ignore-call */ pathParameter($name, $value);
Loading history...
22
    }
23
24
    /**
25
     * @param $pathPattern
26
     *
27
     * @return $this
28
     * @deprecated
29
     * @codeCoverageIgnore
30
     */
31
    public function setUriPattern($pathPattern)
32
    {
33
        return $this->pathPattern($pathPattern);
0 ignored issues
show
Bug introduced by
It seems like pathPattern() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

33
        return $this->/** @scrutinizer ignore-call */ pathPattern($pathPattern);
Loading history...
34
    }
35
36
    /**
37
     * @return string
38
     * @deprecated
39
     * @codeCoverageIgnore
40
     */
41
    public function getUriPattern()
42
    {
43
        return $this->pathPattern;
44
    }
45
46
    /**
47
     * @return array
48
     * @deprecated
49
     * @codeCoverageIgnore
50
     */
51
    public function getPathParameters()
52
    {
53
        return $this->pathParameters;
54
    }
55
}
56