Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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 |