Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function toText(): string |
||
35 | { |
||
36 | $configuredDateFormat = config('laravel-uptime-monitor.notifications.date_format'); |
||
37 | |||
38 | return |
||
39 | $this->startDateTime->format('H:i') . " " |
||
40 | . ($this->startDateTime->isToday() ? "" : "on {$this->startDateTime->format($configuredDateFormat)} ") |
||
41 | . Emoji::rightWardsArrow() . " " |
||
42 | . $this->endDateTime->format('H:i') |
||
43 | . ($this->endDateTime->isToday() ? '' : " on {$this->endDateTime->format($configuredDateFormat)}"); |
||
44 | } |
||
45 | } |