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.

CouldNotCallWebhook   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A urlNotSet() 0 3 1
A secretNotSet() 0 3 1
1
<?php
2
3
namespace Spatie\WebhookServer\Exceptions;
4
5
use Exception;
6
7
class CouldNotCallWebhook extends Exception
8
{
9
    public static function urlNotSet(): self
10
    {
11
        return new static('Could not call the webhook because the url has not been set.');
12
    }
13
14
    public static function secretNotSet(): self
15
    {
16
        return new static('Could not call the webhook because no secret has been set.');
17
    }
18
}
19