Code Duplication    Length = 2-2 lines in 3 locations

Sources/Display.php 1 location

@@ 568-569 (lines=2) @@
565
			list($start, $end, $allday, $span, $tz_abbrev) = buildEventDatetimes($row);
566
567
			// Sanity check
568
			if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
569
				continue;
570
571
			$linked_calendar_event = array(
572
				'id' => $row['id_event'],

Sources/Subs-Calendar.php 2 locations

@@ 140-141 (lines=2) @@
137
		list($start, $end, $allday, $span, $tz_abbrev) = buildEventDatetimes($row);
138
139
		// Sanity check
140
		if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
141
			continue;
142
143
		// Get set up for the loop
144
		$start_object = date_create($row['start_date'] . (!$allday ? ' ' . $row['start_time'] : ''), timezone_open($tz));
@@ 1093-1094 (lines=2) @@
1090
	list($start, $end, $allday, $span, $tz_abbrev) = buildEventDatetimes($row);
1091
1092
	// Sanity check
1093
	if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
1094
		return false;
1095
1096
	$return_value = array(
1097
		'boards' => array(),