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