Skip to content

Commit

Permalink
fix: removed extra comma
Browse files Browse the repository at this point in the history
  • Loading branch information
rmenner committed Jun 25, 2019
1 parent 7488e6b commit 7bbe25f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/GenerateCalendarEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Models/CalendarEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/TemplateCalendarEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 7bbe25f

Please sign in to comment.