Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function display() |
||
20 | { |
||
21 | $downSites = SiteRepository::uncheckedSites(); |
||
22 | |||
23 | if (! $downSites->count()) { |
||
24 | return; |
||
25 | } |
||
26 | |||
27 | $this->output->info('Sites that have not been checked yet'); |
||
28 | $this->output->info('===================================='); |
||
29 | |||
30 | $rows = $downSites->map(function (Site $site) { |
||
31 | $url = $site->url; |
||
32 | |||
33 | return compact('url'); |
||
34 | }); |
||
35 | |||
36 | $titles = ['URL']; |
||
37 | |||
38 | $this->output->table($titles, $rows); |
||
39 | } |
||
40 | } |
||
41 |