Skip to content

Commit

Permalink
Merge branch '3.x' of github.com:saade/filament-fullcalendar into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
saade committed Sep 26, 2023
2 parents 8c26642 + ea44f24 commit fe7816b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Widgets/Concerns/InteractsWithEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function onEventClick(array $event): void

$this->mountAction('view', [
'type' => 'click',
'event' => $event
'event' => $event,
]);
}

Expand All @@ -43,7 +43,7 @@ public function onEventDrop(array $event, array $oldEvent, array $relatedEvents,
'event' => $event,
'oldEvent' => $oldEvent,
'relatedEvents' => $relatedEvents,
'delta' => $delta
'delta' => $delta,
]);

return false;
Expand All @@ -70,7 +70,7 @@ public function onEventResize(array $event, array $oldEvent, array $relatedEvent
'oldEvent' => $oldEvent,
'relatedEvents' => $relatedEvents,
'startDelta' => $startDelta,
'endDelta' => $endDelta
'endDelta' => $endDelta,
]);

return false;
Expand All @@ -91,7 +91,7 @@ public function onDateSelect(string $start, ?string $end, bool $allDay): void
'type' => 'select',
'start' => $start,
'end' => $end,
'allDay' => $allDay
'allDay' => $allDay,
]);
}

Expand All @@ -110,7 +110,7 @@ protected function calculateTimezoneOffset(string $start, ?string $end, bool $al
$end = Carbon::parse($end, $timezone);
}

if (!is_null($end) && $allDay) {
if (! is_null($end) && $allDay) {
/**
* date is exclusive, read more https://fullcalendar.io/docs/select-callback
* For example, if the selection is all-day and the last day is a Thursday, end will be Friday.
Expand Down

0 comments on commit fe7816b

Please sign in to comment.