From 5d7e8d067b05dd2345b9b38c9fe23e81e729986f Mon Sep 17 00:00:00 2001 From: Nathan Plowman Date: Wed, 25 Sep 2024 09:40:22 -0600 Subject: [PATCH] Fixed code sniffer errors. --- .../custom/ys_views_basic/src/Service/EventsCalendar.php | 2 +- .../ys_views_basic/src/Service/EventsCalendarInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendar.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendar.php index 7566d4e90..9f54e5584 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendar.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendar.php @@ -241,7 +241,7 @@ public function createEventArray($node, string $time, int $timestamp): array { /** * {@inheritdoc} */ - public function isAllDay(int $start_ts, int $end_ts, string $timezone = NULL): bool { + public function isAllDay(int $start_ts, int $end_ts, ?string $timezone = NULL): bool { if ($timezone) { $default_tz = date_default_timezone_get(); date_default_timezone_set($timezone); diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendarInterface.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendarInterface.php index b97fd40b2..4c4640478 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendarInterface.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/Service/EventsCalendarInterface.php @@ -84,7 +84,7 @@ public function createEventArray(NodeInterface $node, string $time, int $timesta * @return bool * TRUE if the event is all day, FALSE otherwise. */ - public function isAllDay(int $start_ts, int $end_ts, string $timezone = NULL): bool; + public function isAllDay(int $start_ts, int $end_ts, ?string $timezone = NULL): bool; /** * Get monthly events nodes.