From 7bbe25fc7039dbdec6af634ed91145622f10cdea Mon Sep 17 00:00:00 2001 From: Ryan Menner Date: Tue, 25 Jun 2019 17:23:37 -0400 Subject: [PATCH] fix: removed extra comma --- src/Console/Commands/GenerateCalendarEvent.php | 4 ++-- src/Models/CalendarEvent.php | 2 +- src/Models/TemplateCalendarEvent.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/Commands/GenerateCalendarEvent.php b/src/Console/Commands/GenerateCalendarEvent.php index 65f4ddf..9be271e 100644 --- a/src/Console/Commands/GenerateCalendarEvent.php +++ b/src/Console/Commands/GenerateCalendarEvent.php @@ -96,9 +96,9 @@ public function handle() $nextMonth = $templateCalendarEvent->start_date->addMonths($diff); $weekdays = getWeekdaysInMonth( $templateCalendarEvent->start_date->format('l'), - $nextMonth, + $nextMonth ); - + $dateNext = $weekdays[$templateCalendarEvent->start_date->weekOfMonth - 1]; } diff --git a/src/Models/CalendarEvent.php b/src/Models/CalendarEvent.php index fc714f4..ee798ff 100644 --- a/src/Models/CalendarEvent.php +++ b/src/Models/CalendarEvent.php @@ -248,7 +248,7 @@ public static function showPotentialCalendarEventsOfMonth(\DateTimeInterface $da $weekdays = getWeekdaysInMonth( $calendarEventTmpLast->start_date->format('l'), - $nextMonth, + $nextMonth ); $dateNext = $weekdays[$calendarEventTmpLast->start_date->weekOfMonth - 1]; } diff --git a/src/Models/TemplateCalendarEvent.php b/src/Models/TemplateCalendarEvent.php index 685d942..dd09ea9 100644 --- a/src/Models/TemplateCalendarEvent.php +++ b/src/Models/TemplateCalendarEvent.php @@ -230,7 +230,7 @@ public function getNextCalendarEventStartDate(\DateTimeInterface $startDate) $nextMonth = $startDate->copy()->addMonths($this->frequence_number_of_recurring); $weekdays = getWeekdaysInMonth( $startDate->format('l'), - $nextMonth, + $nextMonth ); $startDate = $weekdays[$startDate->weekOfMonth - 1]; }