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 ( b85ce8...d97b27 )
by Freek
02:28
created

SslCheckFailed   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Spatie\UptimeMonitor\Events;
4
5
use Illuminate\Contracts\Queue\ShouldQueue;
6
use Spatie\SslCertificate\SslCertificate;
7
use Spatie\UptimeMonitor\Models\Monitor;
8
9
class SslCheckFailed implements ShouldQueue
10
{
11
    /** @var \Spatie\UptimeMonitor\Models\Monitor */
12
    public $monitor;
13
14
    /** @var string */
15
    public $reason;
16
17
    /** @var \Spatie\SslCertificate\SslCertificate|null */
18
    public $certificate;
19
20
    public function __construct(Monitor $monitor, string $reason, SslCertificate $certificate = null)
21
    {
22
        $this->monitor = $monitor;
23
24
        $this->reason = $reason;
25
26
        $this->certificate = $certificate;
27
    }
28
}
29