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.

TestOAuthClientRandom   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 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\Tests;
11
12
use fkooman\OAuth\Client\RandomInterface;
13
14
class TestOAuthClientRandom implements RandomInterface
15
{
16
    /** @var int */
17
    private $counter = 0;
18
19
    /**
20
     * @param int  $length
21
     * @param bool $rawBytes
22
     *
23
     * @return string
24
     */
25
    public function get($length, $rawBytes = false)
26
    {
27
        return sprintf('random_%d', $this->counter++);
28
    }
29
}
30