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 ( f14d00...b85ce8 )
by Freek
04:11 queued 01:55
created

ListMonitors   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 7

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 7
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 14 2
1
<?php
2
3
namespace Spatie\UptimeMonitor\Commands;
4
5
use Spatie\UptimeMonitor\Commands\MonitorLists\FailedMonitors;
6
use Spatie\UptimeMonitor\Commands\MonitorLists\HealthyMonitors;
7
use Spatie\UptimeMonitor\Commands\MonitorLists\MonitorsReportingSslProblems;
8
use Spatie\UptimeMonitor\Commands\MonitorLists\UncheckedMonitors;
9
use Spatie\UptimeMonitor\MonitorRepository;
10
11
class ListMonitors extends BaseCommand
12
{
13
    protected $signature = 'monitor:list';
14
15
    protected $description = 'List all monitors';
16
17
    public function handle()
18
    {
19
        $this->line('');
20
21
        if (! MonitorRepository::getAllEnabledMonitors()->count()) {
22
            $this->warn('There are no monitors created or enabled.');
23
            $this->info('You create a monitor using the `monitor:create` command');
24
        }
25
26
        UncheckedMonitors::display();
27
        FailedMonitors::display();
28
        MonitorsReportingSslProblems::display();
29
        HealthyMonitors::display();
30
    }
31
}
32