Code Duplication    Length = 4-4 lines in 2 locations

calendar/inc/class.calendar_bo.inc.php 2 locations

@@ 1110-1113 (lines=4) @@
1107
	 */
1108
	function insert_all_recurrences($event,$_start,$end,&$events)
1109
	{
1110
		if ((int) $this->debug >= 3 || $this->debug == 'set_recurrences' || $this->debug == 'check_move_horizont' || $this->debug == 'insert_all_recurrences')
1111
		{
1112
			$this->debug_message(__METHOD__.'(%1,%2,%3,&$events)',true,$event,$_start,$end);
1113
		}
1114
		$end_in = $end;
1115
1116
		$start = $this->date2ts($_start);
@@ 884-887 (lines=4) @@
881
	 */
882
	function set_recurrences($event,$start=0)
883
	{
884
		if ($this->debug && ((int) $this->debug >= 2 || $this->debug == 'set_recurrences' || $this->debug == 'check_move_horizont'))
885
		{
886
			$this->debug_message('calendar_bo::set_recurrences(%1,%2)',true,$event,$start);
887
		}
888
		// check if the caller gave us enough information and if not read it from the DB
889
		if (!isset($event['participants']) || !isset($event['start']) || !isset($event['end']))
890
		{