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.

NullSession::take()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * eduVPN - End-user friendly VPN.
5
 *
6
 * Copyright: 2016-2017, The Commons Conservancy eduVPN Programme
7
 * SPDX-License-Identifier: AGPL-3.0+
8
 */
9
10
namespace SURFnet\VPN\Server;
11
12
use fkooman\OAuth\Client\Exception\SessionException;
13
use fkooman\OAuth\Client\SessionInterface;
14
15
class NullSession implements SessionInterface
16
{
17
    /**
18
     * @param string $key
19
     * @param mixed  $value
20
     */
21
    public function set($key, $value)
22
    {
23
        throw new SessionException('not implemented');
24
    }
25
26
    /**
27
     * Get value, delete key.
28
     *
29
     * @param string $key
30
     *
31
     * @return mixed
32
     */
33
    public function take($key)
34
    {
35
        throw new SessionException('not implemented');
36
    }
37
}
38