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.
Test Setup Failed
Push — master ( c5ade0...e039e4 )
by Gabriel
05:51
created

AbstractSignatureServiceProvider::getSignature()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nc 2
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Nip\Container\ServiceProviders\Providers;
4
5
use Nip\Container\ServiceProviders\Providers\SignatureServiceProviderInterface as SignatureInterface;
6
7
/**
8
 * Class AbstractSignatureServiceProvider
9
 * @package Nip\Container\ServiceProvider
10
 */
11
abstract class AbstractSignatureServiceProvider extends AbstractServiceProvider implements SignatureInterface
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $signature;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function withSignature($signature)
22
    {
23
        $this->signature = $signature;
24
        return $this;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getSignature()
31
    {
32
        return (is_null($this->signature)) ? get_class($this) : $this->signature;
33
    }
34
}
35