summaryrefslogtreecommitdiff
path: root/app/Http
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-10-29 14:12:01 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-10-29 14:12:01 +0100
commite7825935efc8a37f1fe34337bdc77dbd74ea4482 (patch)
tree57a74cd3636eeed74ad2a13dd7a90b216bacb282 /app/Http
parent18fb69a59b5734940418d693730e6119e9f60889 (diff)
downloadwebtrees-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.php2
-rw-r--r--app/Http/RequestHandlers/CalendarPage.php2
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();