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.
Passed
Push — develop ( 43551f...1a5d91 )
by Toby
03:48 queued 10s
created

NormaliserManager   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A normalise() 0 3 1
A pushNormaliser() 0 6 2
1
<?php
2
3
4
namespace Linkeys\UrlSigner\Support\ExpiryNormaliser;
5
6
7
use Linkeys\UrlSigner\Support\ExpiryNormaliser\Normalisers\ExpiryNormaliser;
8
9
class NormaliserManager implements NormaliserManagerContract
10
{
11
12
    /** @var ExpiryNormaliser */
13
    protected $normaliser;
14
15 71
    public function pushNormaliser(ExpiryNormaliser $normaliser)
16
    {
17 71
        if($this->normaliser === null) {
18 71
            $this->normaliser = $normaliser;
19
        } else {
20 71
            $this->normaliser->setSuccessor($normaliser);
21
        }
22 71
    }
23
24 60
    public function normalise($expiry)
25
    {
26 60
        return $this->normaliser->handle($expiry);
27
    }
28
29
}