Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | protected function enableMonitor(string $url) |
||
|
|||
21 | { |
||
22 | if (! $monitor = MonitorRepository::findByUrl($url)) { |
||
23 | $this->error("There is no monitor configured for url `{$url}`."); |
||
24 | |||
25 | return; |
||
26 | } |
||
27 | |||
28 | $monitor->enable(); |
||
29 | |||
30 | $this->info("The checks for url `{$url}` are now enabled."); |
||
31 | } |
||
32 | } |
||
33 |