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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A set() 0 4 1
A take() 0 4 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