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
Pull Request — master (#117)
by
unknown
01:06
created

certificateStringIsEmpty()   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 0
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\CouldNotLoadLocalCertificate\CertificateFilePermissionInvalid;
7
use Spatie\SslCertificate\Exceptions\CouldNotLoadLocalCertificate\CertificateFileReadFailed;
8
use Spatie\SslCertificate\Exceptions\CouldNotLoadLocalCertificate\CertificateFileStringEmpty;
9
use Spatie\SslCertificate\Exceptions\CouldNotLoadLocalCertificate\LocalCertificateParseFailed;
10
use Spatie\SslCertificate\Exceptions\CouldNotLoadLocalCertificate\NoCertificateFoundAtPath;
11
12
class CouldNotLoadLocalCertificate extends Exception
13
{
14
    public static function certificateStringIsEmpty(): self
15
    {
16
        return new CertificateFileStringEmpty();
17
    }
18
19
    public static function certificatePathNotFound(string $path): self
20
    {
21
        return new NoCertificateFoundAtPath($path);
22
    }
23
24
    public static function localCertificateParseFailed(): self
25
    {
26
        return new LocalCertificateParseFailed();
27
    }
28
29
    public static function certificateFilePermissionInvalid(string $path): self
30
    {
31
        return new CertificateFilePermissionInvalid($path);
32
    }
33
34
    public static function certificateFileReadFailed(string $path): self
35
    {
36
        return new CertificateFileReadFailed($path);
37
    }
38
}
39