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

UncheckedMonitors::display()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 22
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 9.2
c 0
b 0
f 0
cc 2
eloc 12
nc 2
nop 0
1
<?php
2
3
namespace Spatie\UptimeMonitor\Commands\MonitorLists;
4
5
use Spatie\UptimeMonitor\Helpers\ConsoleOutput;
6
use Spatie\UptimeMonitor\Models\Monitor;
7
use Spatie\UptimeMonitor\MonitorRepository;
8
9
class UncheckedMonitors
10
{
11
    public static function display()
12
    {
13
        $uncheckedMonitors = MonitorRepository::getAllUnchecked();
14
15
        if (! $uncheckedMonitors->count()) {
16
            return;
17
        }
18
19
        ConsoleOutput::warn('Monitors that have not been checked yet');
20
        ConsoleOutput::warn('=======================================');
21
22
        $rows = $uncheckedMonitors->map(function (Monitor $monitor) {
23
            $url = $monitor->url;
24
25
            return compact('url');
26
        });
27
28
        $titles = ['URL'];
29
30
        ConsoleOutput::table($titles, $rows);
31
        ConsoleOutput::line('');
32
    }
33
}
34