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.

InvalidSigner   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A doesImplementSigner() 0 5 1
1
<?php
2
3
namespace Spatie\WebhookServer\Exceptions;
4
5
use Exception;
6
use Spatie\WebhookServer\Signer\Signer;
7
8
class InvalidSigner extends Exception
9
{
10
    public static function doesImplementSigner(string $invalidClassName): self
11
    {
12
        $signerInterface = Signer::class;
13
14
        return new static("`{$invalidClassName}` is not a valid signer class because it does not implement `$signerInterface`");
15
    }
16
}
17