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.
Completed
Push — master ( a60304...fbbba3 )
by Freek
01:17
created

CouldNotDownloadCertificate::hostDoesNotExist()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\SslCertificate\Exceptions;
4
5
use Exception;
6
use Spatie\SslCertificate\Exceptions\CouldNotDownloadCertificate\HostDoesNotExist;
7
use Spatie\SslCertificate\Exceptions\CouldNotDownloadCertificate\NoCertificateInstalled;
8
use Spatie\SslCertificate\Exceptions\CouldNotDownloadCertificate\UnknownError;
9
10
class CouldNotDownloadCertificate extends Exception
11
{
12
    public static function hostDoesNotExist(string $hostName): self
13
    {
14
        return new HostDoesNotExist($hostName);
15
    }
16
17
    public static function noCertificateInstalled(string $hostName): self
18
    {
19
        return new NoCertificateInstalled($hostName);
20
    }
21
22
    public static function unknownError(string $hostName, string $errorMessage): self
23
    {
24
        return new UnknownError($hostName, $errorMessage);
25
    }
26
}
27