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.

AuthResponse::getScope()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Onend\PayPal\Common\Auth;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
class AuthResponse
8
{
9
    /**
10
     * @JMS\Type("string")
11
     * @JMS\Accessor(getter="getFlatScope",setter="setFlatScope")
12
     *
13
     * @var string[]
14
     */
15
    protected $scope = [];
16
17
    /**
18
     * @JMS\Type("string")
19
     * @JMS\SerializedName("access_token")
20
     *
21
     * @var string
22
     */
23
    protected $accessToken;
24
25
    /**
26
     * @JMS\Type("string")
27
     * @JMS\SerializedName("token_type")
28
     *
29
     * @var string
30
     */
31
    protected $tokenType;
32
33
    /**
34
     * @JMS\Type("string")
35
     * @JMS\SerializedName("app_id")
36
     *
37
     * @var string
38
     */
39
    protected $appId;
40
41
    /**
42
     * @JMS\Type("string")
43
     * @JMS\SerializedName("expires_in")
44
     *
45
     * @var int
46
     */
47
    protected $expiresIn;
48
49
    /**
50
     * @param string $scope
51
     */
52
    public function setFlatScope($scope)
53
    {
54
        $this->scope = explode(' ', (string)$scope);
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getFlatScope()
61
    {
62
        return implode(' ', $this->scope);
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getAccessToken()
69
    {
70
        return $this->accessToken;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getAppId()
77
    {
78
        return $this->appId;
79
    }
80
81
    /**
82
     * @return int
83
     */
84
    public function getExpiresIn()
85
    {
86
        return $this->expiresIn;
87
    }
88
89
    /**
90
     * @return string[]
91
     */
92
    public function getScope()
93
    {
94
        return $this->scope;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getTokenType()
101
    {
102
        return $this->tokenType;
103
    }
104
}
105