From e0d656e0c81f2b83f188ac9dd826c594d3394c70 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 6 Dec 2020 18:01:23 +0100 Subject: [PATCH] Fix phpcs --- htdocs/core/lib/date.lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/date.lib.php b/htdocs/core/lib/date.lib.php index df20f0a9a67..163f6d85b6d 100644 --- a/htdocs/core/lib/date.lib.php +++ b/htdocs/core/lib/date.lib.php @@ -598,13 +598,14 @@ function dol_get_first_day_week($day, $month, $year, $gm = false) } /** - * Return the easte day in GMT time. + * Return the easter day in GMT time. * This function replaces easter_date() that returns a date in local TZ. * * @param int $year Year - * @return int GMT Date + * @return int GMT Date of easter day */ -function getGMTEasterDatetime($year) { +function getGMTEasterDatetime($year) +{ $base = new DateTime("$year-03-21"); $days = easter_days($year); // Return number of days between 21 march and easter day. $tmp = $base->add(new DateInterval("P{$days}D"));