@@ 20-24 (lines=5) @@ | ||
17 | { |
|
18 | $monitors = MonitorRepository::getForCertificateCheck(); |
|
19 | ||
20 | if ($url = $this->option('url')) { |
|
21 | $monitors = $monitors->filter(function (Monitor $monitor) use ($url) { |
|
22 | return in_array((string) $monitor->url, explode(',', $url)); |
|
23 | }); |
|
24 | } |
|
25 | ||
26 | $this->comment('Start checking the certificates of '.count($monitors).' monitors...'); |
|
27 |
@@ 20-24 (lines=5) @@ | ||
17 | { |
|
18 | $monitors = $this->option('force') ? MonitorRepository::getEnabled() : MonitorRepository::getForUptimeCheck(); |
|
19 | ||
20 | if ($url = $this->option('url')) { |
|
21 | $monitors = $monitors->filter(function (Monitor $monitor) use ($url) { |
|
22 | return in_array((string) $monitor->url, explode(',', $url)); |
|
23 | }); |
|
24 | } |
|
25 | ||
26 | $this->comment('Start checking the uptime of '.count($monitors).' monitors...'); |
|
27 |