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.

FixedTokenGenerator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A generateToken() 0 4 1
1
<?php
2
3
namespace RemiSan\Lock\TokenGenerator;
4
5
use RemiSan\Lock\TokenGenerator;
6
7
class FixedTokenGenerator implements TokenGenerator
8
{
9
    /** @var string */
10
    private $token;
11
12
    /**
13
     * FixedTokenGenerator constructor.
14
     *
15
     * @param string $token The token to return
16
     */
17 3
    public function __construct($token)
18
    {
19 3
        $this->token = $token;
20 3
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25 3
    public function generateToken()
26
    {
27 3
        return $this->token;
28
    }
29
}
30