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

CouldNotLoadLocalCertificate   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 5
lcom 1
cbo 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A certificateStringIsEmpty() 0 4 1
A certificatePathNotFound() 0 4 1
A localCertificateParseFailed() 0 4 1
A certificateFilePermissionInvalid() 0 4 1
A certificateFileReadFailed() 0 4 1
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