Skip to content

Commit

Permalink
Fixed code sniffer errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nplowman committed Sep 25, 2024
1 parent cb2346e commit 5d7e8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5d7e8d0

Please sign in to comment.