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::get()   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
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
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