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 ( c20117...e9301e )
by Daniel
02:01
created

InvalidUrl::couldNotValidate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace LiquidWeb\SslCertificate\Exceptions;
4
5
use Exception;
6
7
class InvalidUrl extends Exception
8
{
9
    use TrackDomainTrait;
10
11
    public static function couldNotValidate(string $url): InvalidUrl
12
    {
13
        $exception = new static("String `{$url}` is not a valid url.");
14
15
        return $exception;
16
    }
17
18
    public static function couldNotDetermineHost(string $url): InvalidUrl
19
    {
20
        $exception = new static("Could not determine host from url `{$url}`.");
21
22
        return $exception;
23
    }
24
25
    public static function couldNotResolveDns(string $hostName): InvalidUrl
26
    {
27
        $exception = new static("The domain `{$hostName}` does not have a valid DNS record.");
28
        $exception->setErrorDomain($hostName);
29
30
        return $exception;
31
    }
32
}
33