diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-10-29 14:12:01 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-10-29 14:12:01 +0100 |
| commit | e7825935efc8a37f1fe34337bdc77dbd74ea4482 (patch) | |
| tree | 57a74cd3636eeed74ad2a13dd7a90b216bacb282 /app/Http | |
| parent | 18fb69a59b5734940418d693730e6119e9f60889 (diff) | |
| download | webtrees-e7825935efc8a37f1fe34337bdc77dbd74ea4482.tar.gz webtrees-e7825935efc8a37f1fe34337bdc77dbd74ea4482.tar.bz2 webtrees-e7825935efc8a37f1fe34337bdc77dbd74ea4482.zip | |
CodeStyle - avoid curly-brackes around embedded variables
Diffstat (limited to 'app/Http')
| -rw-r--r-- | app/Http/RequestHandlers/CalendarEvents.php | 2 | ||||
| -rw-r--r-- | app/Http/RequestHandlers/CalendarPage.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/CalendarEvents.php b/app/Http/RequestHandlers/CalendarEvents.php index dda54a7c07..20a81df93a 100644 --- a/app/Http/RequestHandlers/CalendarEvents.php +++ b/app/Http/RequestHandlers/CalendarEvents.php @@ -215,7 +215,7 @@ class CalendarEvents implements RequestHandlerInterface } } else { // Format the day number using the calendar - $tmp = new Date($cal_date->format("%@ {$d} %O %E")); + $tmp = new Date($cal_date->format('%@ ' . $d . ' %O %E')); $d_fmt = $tmp->minimumDate()->format('%j'); echo '<div class="d-flex d-flex justify-content-between">'; if ($d === $today->day && $cal_date->month === $today->month) { diff --git a/app/Http/RequestHandlers/CalendarPage.php b/app/Http/RequestHandlers/CalendarPage.php index fe460b1649..9c2253423e 100644 --- a/app/Http/RequestHandlers/CalendarPage.php +++ b/app/Http/RequestHandlers/CalendarPage.php @@ -84,7 +84,7 @@ class CalendarPage implements RequestHandlerInterface if (str_starts_with($year, '-')) { $year = substr($year, 1) . ' B.C.'; } - $ged_date = new Date("{$cal} {$day} {$month} {$year}"); + $ged_date = new Date($cal . ' ' . $day . ' ' . $month . ' ' . $year); // need negative year for year entry field. $year = $ged_date->minimumDate()->year; $cal_date = $ged_date->minimumDate(); |
