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.

Token::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * The MIT License
4
 * Copyright (c) 2007 Andy Smith
5
 */
6
namespace Abraham\TwitterOAuth;
7
8
class Token
9
{
10
    /** @var string */
11
    public $key;
12
    /** @var string */
13
    public $secret;
14
15
    /**
16
     * @param string $key    The OAuth Token
17
     * @param string $secret The OAuth Token Secret
18
     */
19
    public function __construct($key, $secret)
20
    {
21
        $this->key = $key;
22
        $this->secret = $secret;
23
    }
24
25
    /**
26
     * Generates the basic string serialization of a token that a server
27
     * would respond to request_token and access_token calls with
28
     *
29
     * @return string
30
     */
31
    public function __toString()
32
    {
33
        return sprintf("oauth_token=%s&oauth_token_secret=%s",
34
            Util::urlencodeRfc3986($this->key),
35
            Util::urlencodeRfc3986($this->secret)
36
        );
37
    }
38
}
39