Code Duplication    Length = 5-5 lines in 2 locations

includes/abstracts/calendar.php 2 locations

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