Code Duplication    Length = 5-5 lines in 2 locations

includes/abstracts/calendar.php 2 locations

@@ 630-634 (lines=5) @@
627
			$start_dt = Carbon::today( $this->timezone )->subDays( $nth );
628
		} elseif ( 'days_after' == $calendar_begins ) {
629
			$start_dt = Carbon::today( $this->timezone )->addDays( $nth );
630
		} elseif ( 'this_week' == $calendar_begins ) {
631
			$week = new Carbon( 'now', $this->timezone );
632
			$week->setWeekStartsAt( $this->week_starts );
633
			$start_dt = $week->startOfWeek();
634
		} elseif ( 'weeks_before' == $calendar_begins ) {
635
			$week = new Carbon( 'now', $this->timezone );
636
			$week->setWeekStartsAt( $this->week_starts );
637
			$start_dt = $week->startOfWeek()->subWeeks( $nth );
@@ 638-642 (lines=5) @@
635
			$week = new Carbon( 'now', $this->timezone );
636
			$week->setWeekStartsAt( $this->week_starts );
637
			$start_dt = $week->startOfWeek()->subWeeks( $nth );
638
		} elseif ( 'weeks_after' == $calendar_begins ) {
639
			$week = new Carbon( 'now', $this->timezone );
640
			$week->setWeekStartsAt( $this->week_starts );
641
			$start_dt = $week->startOfWeek()->addWeeks( $nth );
642
		} elseif ( 'this_month' == $calendar_begins ) {
643
			$start_dt = Carbon::today( $this->timezone )->startOfMonth();
644
		} elseif ( 'months_before' == $calendar_begins ) {
645
			$start_dt = Carbon::today( $this->timezone )->subMonths( $nth )->startOfMonth();