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::secretNotSet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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